Skip to content

Commit 67fbd23

Browse files
authored
test: remove deprecated ts-jest globals config (#6050)
1 parent 80a4f29 commit 67fbd23

File tree

3 files changed

+1
-20
lines changed

3 files changed

+1
-20
lines changed

private/aws-restjson-server/jest.config.js

-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,4 @@ const base = require("../../jest.config.base.js");
22

33
module.exports = {
44
...base,
5-
globals: {
6-
"ts-jest": {
7-
isolatedModules: true,
8-
},
9-
},
105
};

private/aws-restjson-validation-server/jest.config.js

-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,4 @@ const base = require("../../jest.config.base.js");
22

33
module.exports = {
44
...base,
5-
globals: {
6-
"ts-jest": {
7-
isolatedModules: true,
8-
},
9-
},
105
};

scripts/generate-clients/copy-to-clients.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -248,16 +248,7 @@ const copyServerTests = async (sourceDir, destinationDir) => {
248248
const jestConfigPath = join(destPath, "jest.config.js");
249249
writeFileSync(
250250
jestConfigPath,
251-
'const base = require("../../jest.config.base.js");\n' +
252-
"\n" +
253-
"module.exports = {\n" +
254-
" ...base,\n" +
255-
" globals: {\n" +
256-
' "ts-jest": {\n' +
257-
" isolatedModules: true,\n" +
258-
" },\n" +
259-
" },\n" +
260-
"};\n"
251+
'const base = require("../../jest.config.base.js");\n' + "\n" + "module.exports = {\n" + " ...base,\n" + "};\n"
261252
);
262253
}
263254
}

0 commit comments

Comments
 (0)