Skip to content

Commit

Permalink
use swc/jest instead of ts-jest, update build config
Browse files Browse the repository at this point in the history
  • Loading branch information
pokornyd committed Aug 19, 2024
1 parent ba0cb1e commit 6fe6849
Show file tree
Hide file tree
Showing 5 changed files with 304 additions and 254 deletions.
9 changes: 1 addition & 8 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
testEnvironmentOptions: {
customExportConditions: ["node", "node-addons"],
Expand All @@ -10,13 +8,8 @@ module.exports = {
'^(\\.{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,
},
'@swc/jest'
],
},
}
Loading

0 comments on commit 6fe6849

Please sign in to comment.