Skip to content

Commit

Permalink
wip: esm support
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximvdw committed Oct 28, 2024
1 parent 3e5d3cc commit 7667274
Show file tree
Hide file tree
Showing 94 changed files with 17,826 additions and 1,572 deletions.
18 changes: 18 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/** @type {import('ts-jest').JestConfigWithTsJest} **/
export default {
preset: 'ts-jest/presets/js-with-ts',
testEnvironment: "node",
extensionsToTreatAsEsm: ['.ts'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transformIgnorePatterns: [
"node_modules/(?!typedjson)"
],
transform: {
'^.+\\.ts$': ['ts-jest', {
useESM: true,
tsconfig: 'tsconfig/tsconfig.spec.json',
}],
},
};
Loading

0 comments on commit 7667274

Please sign in to comment.