Skip to content

Commit 25cb706

Browse files
committed
Revert "fix: introduce transpilation option to replace isolatedModules option (#5044)"
This reverts commit 5868761 Closes #5049
1 parent 8a7e4c2 commit 25cb706

File tree

89 files changed

+409
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+409
-194
lines changed
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import { BarConstEnum } from '../src/bar-constant'
22
import { FooConstEnum } from '../src/foo-constant'
33

4+
const getOne = (): string => BarConstEnum.one
5+
const getTwo = (): string => FooConstEnum.two
6+
47
describe('const-enum', () => {
5-
it('should pass with non transpilation mode', () => {
6-
expect(BarConstEnum.one).toBe('ONE')
7-
expect(FooConstEnum.two).toBe('TWO')
8+
it('should pass', () => {
9+
expect(getOne()).toBe('ONE')
10+
expect(getTwo()).toBe('TWO')
811
})
912
})

e2e/const-enum/jest-transpiler-cjs.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ export default {
66
[TS_JS_TRANSFORM_PATTERN]: [
77
'ts-jest',
88
{
9-
tsconfig: '<rootDir>/tsconfig-cjs.spec.json',
10-
transpilation: true,
9+
tsconfig: '<rootDir>/tsconfig-cjs-transpiler.spec.json',
1110
},
1211
],
1312
},

e2e/const-enum/jest-transpiler-esm.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ export default {
77
[TS_JS_TRANSFORM_PATTERN]: [
88
'ts-jest',
99
{
10-
tsconfig: '<rootDir>/tsconfig-esm.spec.json',
10+
tsconfig: '<rootDir>/tsconfig-esm-transpiler.spec.json',
1111
useESM: true,
12-
transpilation: true,
1312
},
1413
],
1514
},
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig-cjs.spec.json",
3+
"compilerOptions": {
4+
"isolatedModules": true,
5+
}
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig-esm.spec.json",
3+
"compilerOptions": {
4+
"isolatedModules": true,
5+
}
6+
}

e2e/enum/jest-transpiler-cjs.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ export default {
66
[ESM_TS_JS_TRANSFORM_PATTERN]: [
77
'ts-jest',
88
{
9-
tsconfig: '<rootDir>/tsconfig-cjs.spec.json',
10-
transpilation: true,
9+
tsconfig: '<rootDir>/tsconfig-cjs-transpiler.spec.json',
1110
},
1211
],
1312
},

e2e/enum/jest-transpiler-esm.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ export default {
77
[TS_JS_TRANSFORM_PATTERN]: [
88
'ts-jest',
99
{
10-
tsconfig: '<rootDir>/tsconfig-esm.spec.json',
10+
tsconfig: '<rootDir>/tsconfig-esm-transpiler.spec.json',
1111
useESM: true,
12-
transpilation: true,
1312
},
1413
],
1514
},
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig-cjs.spec.json",
3+
"compilerOptions": {
4+
"isolatedModules": true
5+
}
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig-esm.spec.json",
3+
"compilerOptions": {
4+
"isolatedModules": true
5+
}
6+
}

e2e/esm-features/jest-compiler-esm.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
[TS_TRANSFORM_PATTERN]: [
88
'ts-jest',
99
{
10-
tsconfig: '<rootDir>/tsconfig-esm.spec.json',
10+
tsconfig: '<rootDir>/tsconfig-esm-transpiler.spec.json',
1111
useESM: true,
1212
},
1313
],

0 commit comments

Comments
 (0)