Skip to content

Commit 4608167

Browse files
Update to react-scripts 3
Fixes security vulnerabilities reported by npm audit and gives us latest react-scripts features and updates. Update Snapshot tests to work with latest Jest 24 required by react-scripts 3 by using the enzyme-to-json package (see jestjs/jest#7802).
1 parent 662828b commit 4608167

27 files changed

+8326
-66966
lines changed

testplan/web_ui/testing/package.json

+20-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "testplan",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"private": true,
55
"dependencies": {
66
"@babel/polyfill": "7.0.0",
@@ -14,30 +14,44 @@
1414
"bootstrap": "4.3.1",
1515
"enzyme": "3.7.0",
1616
"enzyme-adapter-react-16": "1.6.0",
17-
"eslint": "5.10.0",
1817
"eslint-plugin-react": "7.11.1",
1918
"react": "16.6.0",
2019
"react-copy-html-to-clipboard": "6.0.4",
2120
"react-custom-scrollbars": "4.2.1",
2221
"react-dom": "16.6.0",
2322
"react-portal-tooltip": "2.4.0",
24-
"react-scripts": "1.1.1",
23+
"react-scripts": "^3.1.1",
2524
"react-spinners": "^0.6.0",
2625
"react-syntax-highlighter": "^11.0.2",
2726
"react-test-renderer": "16.6.0",
2827
"react-vis": "^1.11.7",
2928
"reactstrap": "6.3.0"
3029
},
3130
"devDependencies": {
32-
"babel-eslint": "10.0.1",
31+
"enzyme-to-json": "^3.4.0",
3332
"moxios": "0.4.0"
3433
},
3534
"scripts": {
3635
"start": "react-scripts start",
3736
"build": "react-scripts build",
38-
"test": "react-scripts test --env=jsdom",
37+
"test": "react-scripts test",
3938
"lint": "eslint --ext .js src",
4039
"eject": "react-scripts eject"
4140
},
42-
"homepage": "/"
41+
"homepage": "https://github.com/Morgan-Stanley/testplan",
42+
"browserslist": {
43+
"production": [
44+
">0.2%",
45+
"not dead",
46+
"not op_mini all"
47+
],
48+
"development": [
49+
"last 1 chrome version",
50+
"last 1 firefox version",
51+
"last 1 safari version"
52+
]
53+
},
54+
"jest": {
55+
"snapshotSerializers": ["enzyme-to-json/serializer"]
56+
}
4357
}

0 commit comments

Comments
 (0)