Skip to content

Commit f8f7314

Browse files
committed
babel & jest upgrade
1 parent 5051a91 commit f8f7314

File tree

3 files changed

+2155
-785
lines changed

3 files changed

+2155
-785
lines changed

.babelrc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2-
"presets": ["es2015", "react"],
3-
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-react"
5+
],
46
"plugins": [
5-
"transform-object-rest-spread",
6-
"transform-class-properties"
7+
"@babel/plugin-proposal-object-rest-spread",
8+
"@babel/plugin-proposal-class-properties"
79
]
810
}

package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
"test:ts": "tsc --strict ./typings/index.d.ts"
2424
},
2525
"devDependencies": {
26-
"babel-core": "^6.26.0",
27-
"babel-jest": "^23.4.2",
28-
"babel-plugin-transform-class-properties": "^6.24.1",
29-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
30-
"babel-preset-es2015": "^6.24.1",
31-
"babel-preset-react": "^6.24.1",
26+
"@babel/core": "^7.0.0",
27+
"@babel/plugin-proposal-class-properties": "^7.0.0",
28+
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
29+
"@babel/preset-env": "^7.0.0",
30+
"@babel/preset-react": "^7.0.0",
31+
"babel-core": "^7.0.0-bridge.0",
32+
"babel-jest": "^24.8.0",
3233
"enzyme": "^3.6.0",
3334
"enzyme-adapter-react-16": "^1.5.0",
3435
"enzyme-to-json": "^3.3.1",
@@ -40,7 +41,7 @@
4041
"eslint-plugin-prettier": "^2.1.2",
4142
"eslint-plugin-react": "^6.10.0",
4243
"husky": "^0.14.3",
43-
"jest": "^23.5.0",
44+
"jest": "^24.8.0",
4445
"lint-staged": "^7.2.2",
4546
"preact": "^8.3.1",
4647
"preact-compat": "^3.18.4",
@@ -70,7 +71,9 @@
7071
"setupFiles": [
7172
"<rootDir>/test/__mocks__/requestAnimationFrame.js"
7273
],
73-
"setupTestFrameworkScriptFile": "<rootDir>/test/setup.js",
74+
"setupFilesAfterEnv": [
75+
"<rootDir>/test/setup.js"
76+
],
7477
"snapshotSerializers": [
7578
"enzyme-to-json/serializer"
7679
],

0 commit comments

Comments
 (0)