Skip to content

Commit e5ac50c

Browse files
authored
Upgrade packages to address security warnings (#967)
1 parent 8d87c5a commit e5ac50c

File tree

3 files changed

+1077
-1308
lines changed

3 files changed

+1077
-1308
lines changed

jest.config.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
var tsConfig = require ('./tsconfig.json');
1+
var tsConfig = require('./tsconfig.json');
22

3-
var tsOptions = tsConfig["compilerOptions"];
3+
var tsOptions = tsConfig['compilerOptions'];
44
// Need as the test folder is not visible from the src folder
5-
tsOptions["rootDir"] = null;
6-
tsOptions["inlineSourceMap"] = true;
5+
tsOptions['rootDir'] = null;
6+
tsOptions['inlineSourceMap'] = true;
77

88
module.exports = {
99
automock: false,
@@ -13,6 +13,10 @@ module.exports = {
1313
},
1414
preset: 'ts-jest/presets/js-with-babel',
1515
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
16+
modulePathIgnorePatterns: [
17+
'<rootDir>/jupyterlab_git',
18+
'<rootDir>/jupyter-config'
19+
],
1620
setupFiles: ['<rootDir>/testutils/jest-setup-files.js'],
1721
testPathIgnorePatterns: ['/lib/', '/node_modules/', '/jupyterlab_git/'],
1822
testRegex: '/tests/.*.spec.ts[x]?$',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"husky": "^1.3.1",
109109
"identity-obj-proxy": "^3.0.0",
110110
"jest": "^26.0.0",
111-
"jest-fetch-mock": "^1.6.6",
111+
"jest-fetch-mock": "^3.0.0",
112112
"lint-staged": "^11.0.0",
113113
"mkdirp": "^1.0.3",
114114
"npm-run-all": "^4.1.5",

0 commit comments

Comments
 (0)