diff --git a/examples/basic_bitcoin/jest.config.js b/examples/basic_bitcoin/jest.config.js index 7d048f2e7b..3ab7e2d25e 100644 --- a/examples/basic_bitcoin/jest.config.js +++ b/examples/basic_bitcoin/jest.config.js @@ -1,10 +1,9 @@ /** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { - bail: true, preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/examples/bitcoin_psbt/jest.config.js b/examples/bitcoin_psbt/jest.config.js index 7d048f2e7b..3ab7e2d25e 100644 --- a/examples/bitcoin_psbt/jest.config.js +++ b/examples/bitcoin_psbt/jest.config.js @@ -1,10 +1,9 @@ /** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { - bail: true, preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/examples/ckbtc/jest.config.js b/examples/ckbtc/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/examples/ckbtc/jest.config.js +++ b/examples/ckbtc/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/examples/hello_world/jest.config.js b/examples/hello_world/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/examples/hello_world/jest.config.js +++ b/examples/hello_world/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/examples/hello_world_candid_rpc/jest.config.js b/examples/hello_world_candid_rpc/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/examples/hello_world_candid_rpc/jest.config.js +++ b/examples/hello_world_candid_rpc/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/scripts/jest_isolate_modules.js b/scripts/jest_isolate_modules.js new file mode 100644 index 0000000000..3371e18323 --- /dev/null +++ b/scripts/jest_isolate_modules.js @@ -0,0 +1,30 @@ +/* eslint-disable @typescript-eslint/explicit-function-return-type */ + +import * as fs from 'fs'; +import * as path from 'path'; + +// Path to the jest.config.js file +const jestConfigPath = path.join(process.cwd(), 'jest.config.js'); + +// The new content for jest.config.js +const newJestConfigContent = `/** @type {import('ts-jest').JestConfigWithTsJest} */ +module.exports = { + preset: 'ts-jest', + testEnvironment: 'node', + transform: { + '^.+\\\\.ts$': ['ts-jest', { isolatedModules: true }], + '^.+\\\\.js$': 'ts-jest' + }, + transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed +}; +`; + +// Overwrite the jest.config.js file with the new content +fs.writeFile(jestConfigPath, newJestConfigContent, 'utf8', (err) => { + if (err) { + console.error(`Error writing to jest.config.js: ${err}`); + return; + } + + console.log('jest.config.js successfully overwritten.'); +}); diff --git a/scripts/jest_migration.sh b/scripts/jest_migration.sh index 2eee864440..359aff5103 100755 --- a/scripts/jest_migration.sh +++ b/scripts/jest_migration.sh @@ -20,7 +20,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/async_await/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/async_await/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/async_await/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/async_await/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/bitcoin/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/bitcoin/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/blob_array/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/blob_array/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/blob_array/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/blob_array/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/bytes/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/bytes/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/bytes/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/call_raw/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/call_raw/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/call_raw/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/call_raw/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/canister/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/canister/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/canister/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/canister/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_init/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/complex_init/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/complex_init/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/complex_init/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/complex_types/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/complex_types/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/complex_types/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/composite_queries/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/composite_queries/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/counter/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/counter/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/counter/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/counter/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/cycles/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/cycles/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/cycles/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/cycles/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/date/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/date/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/date/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/date/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/func_types/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/func_types/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/func_types/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/func_types/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/heartbeat/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/heartbeat/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/ic_api/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/ic_api/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ic_api/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/ic_api/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/icrc/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/icrc/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/icrc/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/icrc/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/imports/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/imports/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/imports/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/imports/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/init/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/init/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/init/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/init/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/inspect_message/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/inspect_message/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/key_value_store/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/key_value_store/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/management_canister/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/management_canister/jest.config.js index 7d048f2e7b..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/management_canister/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/management_canister/jest.config.js @@ -1,10 +1,9 @@ /** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { - bail: true, preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/manual_reply/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/manual_reply/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/new/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/new/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/new/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/new/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/new_candid_rpc/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/notify_raw/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/notify_raw/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/null_example/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/null_example/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/null_example/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/null_example/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/optional_types/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/optional_types/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/optional_types/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/optional_types/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/primitive_types/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/primitive_types/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/principal/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/principal/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/principal/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/principal/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/query/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/query/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/query/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/query/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/randomness/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/randomness/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/randomness/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/randomness/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/recursion/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/recursion/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/recursion/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/recursion/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/rejections/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/rejections/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/rejections/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/rejections/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_memory/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/stable_memory/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/stable_memory/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/stable_memory/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/stable_structures/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/stable_structures/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/timers/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/timers/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/timers/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/timers/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/tuple_types/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/tuple_types/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/update/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/update/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/update/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/update/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/jest.config.js b/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/jest.config.js +++ b/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/async_await/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/async_await/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/async_await/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/async_await/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/audio_recorder/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/bitcoin/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/blob_array/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/blob_array/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/blob_array/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/blob_array/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/bytes/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/bytes/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/bytes/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/bytes/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/call_raw/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/call_raw/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/call_raw/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/call_raw/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/candid_encoding/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/candid_keywords/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/canister/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/canister/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/canister/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/canister/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/ckbtc/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_init/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/complex_init/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/complex_init/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/complex_init/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/complex_types/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/complex_types/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/complex_types/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/composite_queries/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/counter/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/counter/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/counter/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/counter/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/cross_canister_calls/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/cycles/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/cycles/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/cycles/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/cycles/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/date/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/date/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/date/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/date/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/ethereum_json_rpc/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/func_types/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/func_types/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/func_types/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/func_types/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/heartbeat/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ic_api/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/ic_api/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/ic_api/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/ic_api/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/icrc/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/icrc/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/icrc/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/icrc/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/imports/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/imports/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/imports/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/imports/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/init/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/init/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/init/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/init/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/inspect_message/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/key_value_store/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/ledger_canister/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/list_of_lists/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/management_canister/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/management_canister/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/management_canister/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/manual_reply/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/manual_reply/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/manual_reply/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/manual_reply/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/calc/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/counter/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/echo/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/factorial/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello-world/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/hello/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/http_counter/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/minimal-counter-dapp/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/persistent-storage/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/phone-book/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/quicksort/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/simple-to-do/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/superheroes/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/threshold_ecdsa/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/motoko_examples/whoami/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/notify_raw/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/null_example/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/null_example/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/null_example/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/null_example/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/optional_types/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/optional_types/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/optional_types/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/optional_types/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/outgoing_http_requests/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/pre_and_post_upgrade/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/primitive_types/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/principal/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/principal/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/principal/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/principal/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/query/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/query/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/query/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/query/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/randomness/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/randomness/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/randomness/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/randomness/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/recursion/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/recursion/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/recursion/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/recursion/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/rejections/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/rejections/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/rejections/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/rejections/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/robust_imports/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/simple_erc20/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/simple_user_accounts/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/stable_b_tree_map_instruction_threshold/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_memory/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/stable_memory/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/stable_memory/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/stable_memory/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/stable_structures/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/timers/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/timers/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/timers/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/timers/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/tuple_types/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/update/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/update/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/update/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/update/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/jest.config.js b/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/jest.config.js +++ b/tests/end_to_end/candid_rpc/functional_syntax/vanilla_js/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/apollo_server/jest.config.js b/tests/end_to_end/http_server/apollo_server/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/apollo_server/jest.config.js +++ b/tests/end_to_end/http_server/apollo_server/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/audio_and_video/jest.config.js b/tests/end_to_end/http_server/audio_and_video/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/audio_and_video/jest.config.js +++ b/tests/end_to_end/http_server/audio_and_video/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/autoreload/jest.config.js b/tests/end_to_end/http_server/autoreload/jest.config.js index 7d048f2e7b..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/autoreload/jest.config.js +++ b/tests/end_to_end/http_server/autoreload/jest.config.js @@ -1,10 +1,9 @@ /** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { - bail: true, preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/bitcoinjs_lib/jest.config.js b/tests/end_to_end/http_server/bitcoinjs_lib/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/bitcoinjs_lib/jest.config.js +++ b/tests/end_to_end/http_server/bitcoinjs_lib/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/bitcore_lib/jest.config.js b/tests/end_to_end/http_server/bitcore_lib/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/bitcore_lib/jest.config.js +++ b/tests/end_to_end/http_server/bitcore_lib/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/ethers/jest.config.js b/tests/end_to_end/http_server/ethers/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/ethers/jest.config.js +++ b/tests/end_to_end/http_server/ethers/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/ethers_base/jest.config.js b/tests/end_to_end/http_server/ethers_base/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/ethers_base/jest.config.js +++ b/tests/end_to_end/http_server/ethers_base/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/express/jest.config.js b/tests/end_to_end/http_server/express/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/express/jest.config.js +++ b/tests/end_to_end/http_server/express/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/fetch_ic/jest.config.js b/tests/end_to_end/http_server/fetch_ic/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/fetch_ic/jest.config.js +++ b/tests/end_to_end/http_server/fetch_ic/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/file_protocol/jest.config.js b/tests/end_to_end/http_server/file_protocol/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/file_protocol/jest.config.js +++ b/tests/end_to_end/http_server/file_protocol/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/fs/jest.config.js b/tests/end_to_end/http_server/fs/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/fs/jest.config.js +++ b/tests/end_to_end/http_server/fs/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/http_outcall_fetch/jest.config.js b/tests/end_to_end/http_server/http_outcall_fetch/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/http_outcall_fetch/jest.config.js +++ b/tests/end_to_end/http_server/http_outcall_fetch/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/hybrid_canister/jest.config.js b/tests/end_to_end/http_server/hybrid_canister/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/hybrid_canister/jest.config.js +++ b/tests/end_to_end/http_server/hybrid_canister/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/ic_evm_rpc/jest.config.js b/tests/end_to_end/http_server/ic_evm_rpc/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/ic_evm_rpc/jest.config.js +++ b/tests/end_to_end/http_server/ic_evm_rpc/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/internet_identity/jest.config.js b/tests/end_to_end/http_server/internet_identity/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/internet_identity/jest.config.js +++ b/tests/end_to_end/http_server/internet_identity/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/large_files/jest.config.js b/tests/end_to_end/http_server/large_files/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/large_files/jest.config.js +++ b/tests/end_to_end/http_server/large_files/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/nest/jest.config.js b/tests/end_to_end/http_server/nest/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/nest/jest.config.js +++ b/tests/end_to_end/http_server/nest/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/open_value_sharing/jest.config.js b/tests/end_to_end/http_server/open_value_sharing/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/open_value_sharing/jest.config.js +++ b/tests/end_to_end/http_server/open_value_sharing/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/sqlite/jest.config.js b/tests/end_to_end/http_server/sqlite/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/sqlite/jest.config.js +++ b/tests/end_to_end/http_server/sqlite/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/sqlite_drizzle/jest.config.js b/tests/end_to_end/http_server/sqlite_drizzle/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/sqlite_drizzle/jest.config.js +++ b/tests/end_to_end/http_server/sqlite_drizzle/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/sqlite_typeorm/jest.config.js b/tests/end_to_end/http_server/sqlite_typeorm/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/sqlite_typeorm/jest.config.js +++ b/tests/end_to_end/http_server/sqlite_typeorm/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/tfjs/jest.config.js b/tests/end_to_end/http_server/tfjs/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/tfjs/jest.config.js +++ b/tests/end_to_end/http_server/tfjs/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed diff --git a/tests/end_to_end/http_server/web_assembly/jest.config.js b/tests/end_to_end/http_server/web_assembly/jest.config.js index e85f8211ce..3ab7e2d25e 100644 --- a/tests/end_to_end/http_server/web_assembly/jest.config.js +++ b/tests/end_to_end/http_server/web_assembly/jest.config.js @@ -3,7 +3,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '^.+\\.ts$': 'ts-jest', + '^.+\\.ts$': ['ts-jest', { isolatedModules: true }], '^.+\\.js$': 'ts-jest' }, transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed