Skip to content

Commit

Permalink
fixes updated jest's' configs
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Biasuzzi <[email protected]>
  • Loading branch information
CBiasuzzi committed Feb 13, 2024
1 parent 569d3c3 commit 4d3ded4
Show file tree
Hide file tree
Showing 4 changed files with 491 additions and 88 deletions.
7 changes: 3 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ module.exports = {
testPathIgnorePatterns: ['/lib/', '/node_modules/'],
testRegex: '/__tests__/.*.spec.ts[x]?$',
transformIgnorePatterns: ['/node_modules/(?!(@jupyter(lab|-widgets)/.*|@svgdotjs/.*)/)'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.json',
},
transform: {
transform_regex: ['ts-jest', { tsconfig: '<rootDir>/tsconfig.json' }],
},
setupFilesAfterEnv: ['<rootDir>/setup-jest.js'],
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"fs-extra": "^11.2.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"mkdirp": "^3.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.4",
Expand Down
1 change: 1 addition & 0 deletions setup-jest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
window.DragEvent = class DragEvent {}
Loading

0 comments on commit 4d3ded4

Please sign in to comment.