Skip to content

Commit

Permalink
Migrate to Jest
Browse files Browse the repository at this point in the history
  • Loading branch information
miles170 committed Sep 22, 2022
1 parent bf39b3d commit 24d729b
Show file tree
Hide file tree
Showing 15 changed files with 7,377 additions and 4,245 deletions.
10 changes: 10 additions & 0 deletions jest.config.js
@@ -0,0 +1,10 @@
export default {
extensionsToTreatAsEsm: ['.ts'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transform: {
'^.+\\.ts$': ['ts-jest', {useESM: true}],
},
testRegex: '(/test/.*|(\\.|/))\\.spec\\.ts$',
};
10 changes: 10 additions & 0 deletions jest.integration.config.js
@@ -0,0 +1,10 @@
export default {
extensionsToTreatAsEsm: ['.ts'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transform: {
'^.+\\.ts$': ['ts-jest', {useESM: true}],
},
testRegex: '(/test/.*|(\\.|/))\\.integration\\.spec\\.ts$',
};

0 comments on commit 24d729b

Please sign in to comment.