Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions e2e/const-enum/__tests__/const-enum.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { BarConstEnum } from '../src/bar-constant'
import { FooConstEnum } from '../src/foo-constant'

const getOne = (): string => BarConstEnum.one
const getTwo = (): string => FooConstEnum.two

describe('const-enum', () => {
it('should pass', () => {
expect(getOne()).toBe('ONE')
expect(getTwo()).toBe('TWO')
it('should pass with non transpilation mode', () => {
expect(BarConstEnum.one).toBe('ONE')
expect(FooConstEnum.two).toBe('TWO')
})
})
3 changes: 2 additions & 1 deletion e2e/const-enum/jest-transpiler-cjs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default {
[TS_JS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-cjs-transpiler.spec.json',
tsconfig: '<rootDir>/tsconfig-cjs.spec.json',
transpilation: true,
},
],
},
Expand Down
3 changes: 2 additions & 1 deletion e2e/const-enum/jest-transpiler-esm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export default {
[TS_JS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-esm-transpiler.spec.json',
tsconfig: '<rootDir>/tsconfig-esm.spec.json',
useESM: true,
transpilation: true,
},
],
},
Expand Down
6 changes: 0 additions & 6 deletions e2e/const-enum/tsconfig-cjs-transpiler.spec.json

This file was deleted.

6 changes: 0 additions & 6 deletions e2e/const-enum/tsconfig-esm-transpiler.spec.json

This file was deleted.

3 changes: 2 additions & 1 deletion e2e/enum/jest-transpiler-cjs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default {
[ESM_TS_JS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-cjs-transpiler.spec.json',
tsconfig: '<rootDir>/tsconfig-cjs.spec.json',
transpilation: true,
},
],
},
Expand Down
3 changes: 2 additions & 1 deletion e2e/enum/jest-transpiler-esm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export default {
[TS_JS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-esm-transpiler.spec.json',
tsconfig: '<rootDir>/tsconfig-esm.spec.json',
useESM: true,
transpilation: true,
},
],
},
Expand Down
6 changes: 0 additions & 6 deletions e2e/enum/tsconfig-cjs-transpiler.spec.json

This file was deleted.

6 changes: 0 additions & 6 deletions e2e/enum/tsconfig-esm-transpiler.spec.json

This file was deleted.

2 changes: 1 addition & 1 deletion e2e/esm-features/jest-compiler-esm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
[TS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-esm-transpiler.spec.json',
tsconfig: '<rootDir>/tsconfig-esm.spec.json',
useESM: true,
},
],
Expand Down
3 changes: 2 additions & 1 deletion e2e/esm-features/jest-transpiler-esm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export default {
[TS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-esm-transpiler.spec.json',
tsconfig: '<rootDir>/tsconfig-esm.spec.json',
useESM: true,
transpilation: true,
},
],
},
Expand Down
6 changes: 0 additions & 6 deletions e2e/esm-features/tsconfig-esm-transpiler.spec.json

This file was deleted.

3 changes: 2 additions & 1 deletion e2e/extend-ts-jest/jest-transpiler-cjs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default {
[TS_JS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-cjs-transpiler.spec.json',
tsconfig: '<rootDir>/tsconfig-cjs.spec.json',
transpilation: true,
},
],
},
Expand Down
3 changes: 2 additions & 1 deletion e2e/extend-ts-jest/jest-transpiler-esm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export default {
[TS_JS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-esm-transpiler.spec.json',
tsconfig: '<rootDir>/tsconfig-esm.spec.json',
useESM: true,
transpilation: true,
},
],
},
Expand Down
6 changes: 0 additions & 6 deletions e2e/extend-ts-jest/tsconfig-cjs-transpiler.spec.json

This file was deleted.

6 changes: 0 additions & 6 deletions e2e/extend-ts-jest/tsconfig-esm-transpiler.spec.json

This file was deleted.

3 changes: 2 additions & 1 deletion e2e/hoist-jest/jest-transpiler-cjs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default {
[TS_JS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-cjs-transpiler.spec.json',
tsconfig: '<rootDir>/tsconfig-cjs.spec.json',
transpilation: true,
},
],
},
Expand Down
6 changes: 0 additions & 6 deletions e2e/hoist-jest/tsconfig-cjs-transpiler.spec.json

This file was deleted.

3 changes: 2 additions & 1 deletion e2e/presets/jest-transpiler-cjs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default {
[TS_JS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-cjs-transpiler.spec.json',
tsconfig: '<rootDir>/tsconfig-cjs.spec.json',
transpilation: true,
},
],
},
Expand Down
3 changes: 2 additions & 1 deletion e2e/presets/jest-transpiler-esm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export default {
[TS_JS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-esm-transpiler.spec.json',
tsconfig: '<rootDir>/tsconfig-esm.spec.json',
useESM: true,
transpilation: true,
},
],
},
Expand Down
6 changes: 0 additions & 6 deletions e2e/presets/tsconfig-cjs-transpiler.spec.json

This file was deleted.

6 changes: 0 additions & 6 deletions e2e/presets/tsconfig-esm-transpiler.spec.json

This file was deleted.

3 changes: 2 additions & 1 deletion e2e/source-map/jest-transpiler-cjs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default {
[TS_JS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-cjs-transpiler.spec.json',
tsconfig: '<rootDir>/../tsconfig-cjs.spec.json',
transpilation: true,
},
],
},
Expand Down
3 changes: 2 additions & 1 deletion e2e/source-map/jest-transpiler-esm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export default {
[TS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-esm-transpiler.spec.json',
tsconfig: '<rootDir>/../tsconfig-esm.spec.json',
useESM: true,
transpilation: true,
},
],
},
Expand Down
6 changes: 0 additions & 6 deletions e2e/source-map/tsconfig-cjs-transpiler.spec.json

This file was deleted.

6 changes: 0 additions & 6 deletions e2e/source-map/tsconfig-esm-transpiler.spec.json

This file was deleted.

3 changes: 2 additions & 1 deletion e2e/test-utils/jest-transpiler-cjs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default {
[TS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-cjs-transpiler.spec.json',
tsconfig: '<rootDir>/../tsconfig-cjs.spec.json',
transpilation: true,
},
],
},
Expand Down
3 changes: 2 additions & 1 deletion e2e/test-utils/jest-transpiler-esm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export default {
[TS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-esm-transpiler.spec.json',
tsconfig: '<rootDir>/../tsconfig-esm.spec.json',
useESM: true,
transpilation: true,
},
],
},
Expand Down
6 changes: 0 additions & 6 deletions e2e/test-utils/tsconfig-cjs-transpiler.spec.json

This file was deleted.

6 changes: 0 additions & 6 deletions e2e/test-utils/tsconfig-esm-transpiler.spec.json

This file was deleted.

3 changes: 2 additions & 1 deletion e2e/transform-js/jest-transpiler-cjs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default {
[TS_JS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-cjs-transpiler.spec.json',
tsconfig: '<rootDir>/tsconfig-cjs.spec.json',
transpilation: true,
},
],
},
Expand Down
3 changes: 2 additions & 1 deletion e2e/transform-js/jest-transpiler-esm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export default {
[TS_JS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-esm-transpiler.spec.json',
tsconfig: '<rootDir>/tsconfig-esm.spec.json',
useESM: true,
transpilation: true,
},
],
},
Expand Down
6 changes: 0 additions & 6 deletions e2e/transform-js/tsconfig-cjs-transpiler.spec.json

This file was deleted.

6 changes: 0 additions & 6 deletions e2e/transform-js/tsconfig-esm-transpiler.spec.json

This file was deleted.

3 changes: 2 additions & 1 deletion e2e/transformer-in-ts/jest-transpiler-cjs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ export default {
[TS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-cjs-transpiler.spec.json',
tsconfig: '<rootDir>/../tsconfig-cjs.spec.json',
astTransformers: {
before: [
{
path: '<rootDir>/../../src/transformers/hoist-jest.ts',
},
],
},
transpilation: true,
},
],
},
Expand Down
3 changes: 2 additions & 1 deletion e2e/transformer-in-ts/jest-transpiler-esm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
[TS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-esm-transpiler.spec.json',
tsconfig: '<rootDir>/../tsconfig-esm.spec.json',
astTransformers: {
before: [
{
Expand All @@ -16,6 +16,7 @@ export default {
],
},
useESM: true,
transpilation: true,
},
],
},
Expand Down
6 changes: 0 additions & 6 deletions e2e/transformer-in-ts/tsconfig-cjs-transpiler.spec.json

This file was deleted.

6 changes: 0 additions & 6 deletions e2e/transformer-in-ts/tsconfig-esm-transpiler.spec.json

This file was deleted.

3 changes: 2 additions & 1 deletion e2e/transformer-options/jest-transpiler-cjs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
[TS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-cjs-transpiler.spec.json',
tsconfig: '<rootDir>/tsconfig-cjs.spec.json',
astTransformers: {
before: [
{
Expand All @@ -18,6 +18,7 @@ export default {
},
],
},
transpilation: true,
},
],
},
Expand Down
3 changes: 2 additions & 1 deletion e2e/transformer-options/jest-transpiler-esm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
[TS_TRANSFORM_PATTERN]: [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig-esm-transpiler.spec.json',
tsconfig: '<rootDir>/tsconfig-esm.spec.json',
astTransformers: {
before: [
{
Expand All @@ -20,6 +20,7 @@ export default {
],
},
useESM: true,
transpilation: true,
},
],
},
Expand Down
6 changes: 0 additions & 6 deletions e2e/transformer-options/tsconfig-cjs-transpiler.spec.json

This file was deleted.

Loading
Loading