From 67fbd23c5226c67cd860ea7b92ac1ff9eb4a123d Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Tue, 7 May 2024 16:49:40 -0700 Subject: [PATCH] test: remove deprecated ts-jest globals config (#6050) --- private/aws-restjson-server/jest.config.js | 5 ----- private/aws-restjson-validation-server/jest.config.js | 5 ----- scripts/generate-clients/copy-to-clients.js | 11 +---------- 3 files changed, 1 insertion(+), 20 deletions(-) diff --git a/private/aws-restjson-server/jest.config.js b/private/aws-restjson-server/jest.config.js index 1c8ba8ea6c77..a8d1c2e49912 100644 --- a/private/aws-restjson-server/jest.config.js +++ b/private/aws-restjson-server/jest.config.js @@ -2,9 +2,4 @@ const base = require("../../jest.config.base.js"); module.exports = { ...base, - globals: { - "ts-jest": { - isolatedModules: true, - }, - }, }; diff --git a/private/aws-restjson-validation-server/jest.config.js b/private/aws-restjson-validation-server/jest.config.js index 1c8ba8ea6c77..a8d1c2e49912 100644 --- a/private/aws-restjson-validation-server/jest.config.js +++ b/private/aws-restjson-validation-server/jest.config.js @@ -2,9 +2,4 @@ const base = require("../../jest.config.base.js"); module.exports = { ...base, - globals: { - "ts-jest": { - isolatedModules: true, - }, - }, }; diff --git a/scripts/generate-clients/copy-to-clients.js b/scripts/generate-clients/copy-to-clients.js index 87c6e1b8611d..62221a20bded 100644 --- a/scripts/generate-clients/copy-to-clients.js +++ b/scripts/generate-clients/copy-to-clients.js @@ -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" ); } }