test(ts-jest): Migrate obsolete Jest config (#17733)

This commit is contained in:
Sergei Zharinov 2022-09-10 12:05:47 +03:00 committed by GitHub
parent 049d624be9
commit 4e9ddc2452
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 11 deletions

View file

@ -59,12 +59,15 @@ const config: JestConfig = {
statements: 100,
},
},
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
diagnostics: false,
isolatedModules: true,
},
transform: {
'\\.ts$': [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig.spec.json',
diagnostics: false,
isolatedModules: true,
},
],
},
modulePathIgnorePatterns: ['<rootDir>/dist/', '/__fixtures__/'],
reporters: ci ? ['default', 'github-actions'] : ['default'],

View file

@ -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",

View file

@ -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"