Skip to content

Commit 6e1d67b

Browse files
author
Daniel Del Core
committed
Revert "adds dedicated esm jest and ts config"
This reverts commit 5bf3428.
1 parent e5499d8 commit 6e1d67b

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

jest.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
/** @type {import('ts-jest').JestConfigWithTsJest} */
21
module.exports = {
32
transform: {
43
'^.+\\.ts$': [
54
'ts-jest',
65
{
7-
tsconfig: 'tsconfig.test.json',
8-
useESM: true,
6+
tsconfig: 'tsconfig.json',
97
},
108
],
119
},
12-
extensionsToTreatAsEsm: ['.ts'],
1310
moduleFileExtensions: ['ts', 'js'],
1411
testRegex: '^.+\\.(spec|test)\\.(ts|js)$',
1512
snapshotSerializers: ['jest-serializer-html-string'],
@@ -18,7 +15,6 @@ module.exports = {
1815
'jest-watch-typeahead/testname',
1916
],
2017
moduleNameMapper: {
21-
'^(\\.{1,2}/.*)\\.js$': '$1',
2218
'@hypermod/(.*)$': '<rootDir>/packages/$1/src',
2319
'@codeshift/(.*)$': '<rootDir>/packages/$1/src',
2420
},

tsconfig.test.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)