Skip to content

Commit

Permalink
feat: enhance Jest configuration with custom transform settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricbet committed Dec 23, 2024
1 parent e144406 commit 5a64e98
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,22 @@ module.exports = {
'**/packages/extension/__tests__/{hosted,common}/**/?(*.)+(spec|test).[jt]s?(x)',
'**/packages/{components,core-browser,core-common,electron-basic}/__tests__/**/?(*.)+(spec|test).[jt]s?(x)',
],
transformIgnorePatterns: ['/node_modules/(?!(@opensumi/monaco-editor-core)/)'],
transform: {
'^.+\\.(js)$': [
'ts-jest',
{
isolatedModules: true,
tsconfig: {
allowJs: true,
module: 'NodeNext',
moduleResolution: 'node',
esModuleInterop: true,
skipLibCheck: true,
},
},
],
},
},
],
};

0 comments on commit 5a64e98

Please sign in to comment.