diff --git a/jest.config.ts b/jest.config.ts index 85289d31105bb3e45a8519df5b1137e931185b3e..1e5b8e453ae0be9aff65a9905646095639ac17d4 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -5,6 +5,14 @@ const config: JestConfigWithTsJest = { testEnvironment: "node", reporters: ["default", "jest-junit"], coverageProvider: "v8", + transform: { + "^.+\\.m?[tj]sx?$": [ + "ts-jest", + { + tsconfig: "tests/tsconfig.json", + }, + ], + }, }; export default config; diff --git a/tests/tsconfig.json b/tests/tsconfig.json index 6ddab7ad84a0055407b85634ffba8270cd7781e5..e6db6f1651e18a64c8d6e026b0d5510d56f15960 100644 --- a/tests/tsconfig.json +++ b/tests/tsconfig.json @@ -4,4 +4,7 @@ "declaration": true, "module": "commonjs" }, + "files": [ + "./index.d.ts" + ] } diff --git a/tsconfig.json b/tsconfig.json index 5136c1bfd74e88b9abfd0e55735dd398ad833483..c5294d3dc9ae637e2b6e97cb6838cd9eefc848f4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,9 +6,6 @@ "sourceMap": true, "outDir": "./lib", }, - "files": [ - "./tests/index.d.ts" - ], "include": [ "src" ],