Skip to content

Commit

Permalink
Merge branch 'feature/preset' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
unsync committed Jan 27, 2024
2 parents 66c8b75 + cf94d18 commit b909606
Show file tree
Hide file tree
Showing 3 changed files with 335 additions and 281 deletions.
16 changes: 1 addition & 15 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest/presets/default-esm', // or other ESM presets
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transform: {
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`
'^.+\\.tsx?$': [
'ts-jest',
{
useESM: true,
},
],
},
preset: '@unsync/jest-preset',
}
Loading

0 comments on commit b909606

Please sign in to comment.