diff --git a/common.jest_config.ts b/common.jest_config.ts index 79280aa9..ceee79d8 100644 --- a/common.jest_config.ts +++ b/common.jest_config.ts @@ -24,8 +24,9 @@ export function createConfig(testType: string, title: string): Config { displayName: title, modulePathIgnorePatterns: ["__tests__/__snapshots__/"], transform: { ".(ts)": "ts-jest" }, + transformIgnorePatterns: [ "^.+\\.cjs$", "^.+\\.js$", "^.+\\.json$" ], testRegex: "(test|spec)\\.ts$", - moduleFileExtensions: ["ts", "js"], + moduleFileExtensions: ["ts", "js", "json"], testPathIgnorePatterns: ["/__tests__/__results__", `.*/__${isUnit ? "system" : "unit"}__/.*`], testEnvironment: "node", collectCoverage: isUnit,