Skip to content

Commit 665e471

Browse files
author
Frederic Collonval
committed
Fix jest configuration
1 parent ea54b3f commit 665e471

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

jest.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
module.exports = {
22
automock: false,
33
moduleNameMapper: {
4-
'\\.(css|less|sass|scss)$': 'identity-obj-proxy'
4+
'\\.(css|less|sass|scss)$': 'identity-obj-proxy',
5+
'\\.(svg)$': '<rootDir>/testutils/jest-file-mock.js'
56
},
67
preset: 'ts-jest/presets/js-with-babel',
78
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
8-
setupFiles: ['./setupJest.js'],
9+
setupFiles: ['<rootDir>/testutils/jest-setup-files.js'],
910
testPathIgnorePatterns: ['/dev_mode/', '/lib/', '/node_modules/'],
1011
testRegex: '/tests/test-.*/.*.spec.ts[x]?$',
1112
transformIgnorePatterns: ['/node_modules/(?!(@jupyterlab/.*)/)'],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@jupyterlab/application": "^1.1.0",
5353
"@jupyterlab/apputils": "^1.1.0",
5454
"@jupyterlab/console": "^1.1.0",
55-
"@jupyterlab/coreutils": "^3.0.0",
55+
"@jupyterlab/coreutils": "^3.1.0",
5656
"@jupyterlab/filebrowser": "^1.1.0",
5757
"@jupyterlab/mainmenu": "^1.1.0",
5858
"@jupyterlab/services": "^4.1.0",

testutils/jest-file-mock.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = 'test-file-stub';
File renamed without changes.

0 commit comments

Comments
 (0)