From 448cbbfd743d6b0d7740b75b0c078cfcfe2ed7b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Wed, 17 May 2023 23:04:37 +0100 Subject: [PATCH] chore: fix types for build & test --- tsconfig.json | 3 ++- tsconfig.prod.json | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index a576a03..130db2c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,8 @@ "ESNext" ], "types": [ - "vitest/globals" + "vitest/globals", + "@testing-library/jest-dom" ], "module": "ESNext", "skipLibCheck": true, diff --git a/tsconfig.prod.json b/tsconfig.prod.json index cfe0f5c..a829226 100644 --- a/tsconfig.prod.json +++ b/tsconfig.prod.json @@ -1,8 +1,9 @@ { "extends": "./tsconfig", "exclude": [ - "./src/__tests__/**", - "./src/__mocks__/**", - "./src/test-utils" + "./src/**/__tests__/**", + "./src/**/__mocks__/**", + "./src/test-utils/**", + "./src/**/*.test.{js,jsx,ts,tsx}" ] } \ No newline at end of file