Skip to content

Commit

Permalink
test: remove deprecated ts-jest globals config (#6050)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed May 7, 2024
1 parent 80a4f29 commit 67fbd23
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
5 changes: 0 additions & 5 deletions private/aws-restjson-server/jest.config.js
Expand Up @@ -2,9 +2,4 @@ const base = require("../../jest.config.base.js");

module.exports = {
...base,
globals: {
"ts-jest": {
isolatedModules: true,
},
},
};
5 changes: 0 additions & 5 deletions private/aws-restjson-validation-server/jest.config.js
Expand Up @@ -2,9 +2,4 @@ const base = require("../../jest.config.base.js");

module.exports = {
...base,
globals: {
"ts-jest": {
isolatedModules: true,
},
},
};
11 changes: 1 addition & 10 deletions scripts/generate-clients/copy-to-clients.js
Expand Up @@ -248,16 +248,7 @@ const copyServerTests = async (sourceDir, destinationDir) => {
const jestConfigPath = join(destPath, "jest.config.js");
writeFileSync(
jestConfigPath,
'const base = require("../../jest.config.base.js");\n' +
"\n" +
"module.exports = {\n" +
" ...base,\n" +
" globals: {\n" +
' "ts-jest": {\n' +
" isolatedModules: true,\n" +
" },\n" +
" },\n" +
"};\n"
'const base = require("../../jest.config.base.js");\n' + "\n" + "module.exports = {\n" + " ...base,\n" + "};\n"
);
}
}
Expand Down

0 comments on commit 67fbd23

Please sign in to comment.