diff --git a/tests/module-types/override-to-cjs/tsconfig-swc.json b/tests/module-types/override-to-cjs/tsconfig-swc.json index ca7aae1eb..b634e34df 100644 --- a/tests/module-types/override-to-cjs/tsconfig-swc.json +++ b/tests/module-types/override-to-cjs/tsconfig-swc.json @@ -1,15 +1,6 @@ { + "extends": "./tsconfig.json", "ts-node": { - "swc": true, - "moduleTypes": { - "webpack.config.ts": "cjs", - // Test that subsequent patterns override earlier ones - "src/cjs-subdir/**/*": "esm", - "src/cjs-subdir": "cjs", - "src/cjs-subdir/esm-exception.ts": "esm" - } - }, - "compilerOptions": { - "module": "ES2015" + "swc": true } } diff --git a/tests/module-types/override-to-esm/tsconfig-swc.json b/tests/module-types/override-to-esm/tsconfig-swc.json index 35a08fc62..b634e34df 100644 --- a/tests/module-types/override-to-esm/tsconfig-swc.json +++ b/tests/module-types/override-to-esm/tsconfig-swc.json @@ -1,14 +1,6 @@ { + "extends": "./tsconfig.json", "ts-node": { - "swc": true, - "moduleTypes": { - // Test that subsequent patterns override earlier ones - "src/esm-subdir/**/*": "cjs", - "src/esm-subdir": "esm", - "src/esm-subdir/cjs-exception.ts": "cjs" - } - }, - "compilerOptions": { - "module": "CommonJS" + "swc": true } }