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:
parent
409cf71a4d
commit
91b21f9514
|
@ -1,13 +1,3 @@
|
||||||
{
|
{
|
||||||
"env": {
|
"presets": ["next/babel"]
|
||||||
"development": {
|
|
||||||
"presets": ["next/babel"]
|
|
||||||
},
|
|
||||||
"production": {
|
|
||||||
"presets": ["next/babel"]
|
|
||||||
},
|
|
||||||
"test": {
|
|
||||||
"presets": [["next/babel", { "preset-env": { "modules": "commonjs" } }]]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue