From ef13c1fa351063461334e85e101b1fcff15619fc Mon Sep 17 00:00:00 2001 From: Patrick Taylor Date: Mon, 9 Sep 2024 11:57:43 +0100 Subject: [PATCH] =?UTF-8?q?Updated=20config=20=E2=9A=99=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jest.config.ts | 5 ++++- tsconfig.json | 7 +++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/jest.config.ts b/jest.config.ts index 3434b6f..274046d 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -5,7 +5,7 @@ import type { JestConfigWithTsJest } from 'ts-jest' const config: JestConfigWithTsJest = { clearMocks: true, collectCoverageFrom: [ - 'src/**/*.ts', + 'src/**/*', // TODO: Write tests for these files when they are less likely to change '!src/index.ts', '!src/linters/index.ts', @@ -25,6 +25,9 @@ const config: JestConfigWithTsJest = { '^@Types(.*)$': '/src/types$1', '^@Utils(.*)$': '/src/utils$1', }, + modulePathIgnorePatterns: [ + '/lib/', + ], setupFilesAfterEnv: [ '/jest-config/setup.ts', ], diff --git a/tsconfig.json b/tsconfig.json index e1eacfc..b93a333 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,10 +15,9 @@ "target": "ESNext" }, "include": [ - "config/**/*.ts", - "jest-config/types.d.ts", - "src/**/*.ts", - "src/types/global.d.ts" + "config", + "jest-config", + "src" ], "exclude": ["node_modules"] }