1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Update with-jest example .babelrc config (#5414)

* simplify babelrc

* simplify "test" script

* update dependencies
This commit is contained in:
Luc 2018-10-09 18:45:51 +08:00 committed by Tim Neutkens
parent 409cf71a4d
commit 91b21f9514
2 changed files with 5 additions and 14 deletions

View file

@ -1,13 +1,3 @@
{ {
"env": {
"development": {
"presets": ["next/babel"] "presets": ["next/babel"]
},
"production": {
"presets": ["next/babel"]
},
"test": {
"presets": [["next/babel", { "preset-env": { "modules": "commonjs" } }]]
}
}
} }

View file

@ -7,16 +7,17 @@
"react-dom": "^16.5.0" "react-dom": "^16.5.0"
}, },
"devDependencies": { "devDependencies": {
"babel-core": "7.0.0-bridge.0", "@babel/core": "^7.1.2",
"babel-core": "^7.0.0-bridge",
"babel-jest": "^23.6.0", "babel-jest": "^23.6.0",
"enzyme": "3.4.3", "enzyme": "3.4.3",
"enzyme-adapter-react-16": "1.2.0", "enzyme-adapter-react-16": "1.2.0",
"jest": "23.5.0", "jest": "^23.6.0",
"react-addons-test-utils": "15.6.2", "react-addons-test-utils": "15.6.2",
"react-test-renderer": "16.4.2" "react-test-renderer": "16.4.2"
}, },
"scripts": { "scripts": {
"test": "NODE_ENV=test jest", "test": "jest",
"dev": "next", "dev": "next",
"build": "next build", "build": "next build",
"start": "next start" "start": "next start"