diff --git a/jest.config.ts b/jest.config.ts index 5103d5c3cd..c10222d88c 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -59,12 +59,15 @@ const config: JestConfig = { statements: 100, }, }, - globals: { - 'ts-jest': { - tsconfig: '/tsconfig.spec.json', - diagnostics: false, - isolatedModules: true, - }, + transform: { + '\\.ts$': [ + 'ts-jest', + { + tsconfig: '/tsconfig.spec.json', + diagnostics: false, + isolatedModules: true, + }, + ], }, modulePathIgnorePatterns: ['/dist/', '/__fixtures__/'], reporters: ci ? ['default', 'github-actions'] : ['default'], diff --git a/package.json b/package.json index 02c94c1bc7..f44f2c33a7 100644 --- a/package.json +++ b/package.json @@ -305,7 +305,7 @@ "shelljs": "0.8.5", "strip-ansi": "6.0.1", "tmp-promise": "3.0.3", - "ts-jest": "29.0.0-next.1", + "ts-jest": "29.0.0", "ts-node": "10.9.1", "type-fest": "2.19.0", "typescript": "4.7.4", diff --git a/yarn.lock b/yarn.lock index 58737f5f6b..2b23af662b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9253,10 +9253,10 @@ ts-essentials@^7.0.3: resolved "https://registry.yarnpkg.com/ts-essentials/-/ts-essentials-7.0.3.tgz#686fd155a02133eedcc5362dc8b5056cde3e5a38" integrity sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ== -ts-jest@29.0.0-next.1: - version "29.0.0-next.1" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.0.0-next.1.tgz#bfd6c190f1eb30ce2e9408f6c3309784ccf96349" - integrity sha512-bVo2GDuJiV+cWEYB72tdz2Ips4JDKa04bcKikPULxxUHT4fsoY1zB2zvsrJym18qrFpXyVrIdgJFLfEx2YTkbg== +ts-jest@29.0.0: + version "29.0.0" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.0.0.tgz#3617e10c39a76380fe521d0c26186a773f5f1e46" + integrity sha512-OxUaigbv5Aon3OMLY9HBtwkGMs1upWE/URrmmVQFzzOcGlEPVuWzGmXUIkWGt/95Dj/T6MGuTrHHGL6kT6Yn8g== dependencies: bs-logger "0.x" fast-json-stable-stringify "2.x"