From 91b21f9514f3ce2f5d96f248b5c0c811fa0bdbad Mon Sep 17 00:00:00 2001 From: Luc Date: Tue, 9 Oct 2018 18:45:51 +0800 Subject: [PATCH] Update with-jest example .babelrc config (#5414) * simplify babelrc * simplify "test" script * update dependencies --- examples/with-jest/.babelrc | 12 +----------- examples/with-jest/package.json | 7 ++++--- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/examples/with-jest/.babelrc b/examples/with-jest/.babelrc index 717376c4..1ff94f7e 100644 --- a/examples/with-jest/.babelrc +++ b/examples/with-jest/.babelrc @@ -1,13 +1,3 @@ { - "env": { - "development": { - "presets": ["next/babel"] - }, - "production": { - "presets": ["next/babel"] - }, - "test": { - "presets": [["next/babel", { "preset-env": { "modules": "commonjs" } }]] - } - } + "presets": ["next/babel"] } diff --git a/examples/with-jest/package.json b/examples/with-jest/package.json index 2901be9d..22cbb14f 100644 --- a/examples/with-jest/package.json +++ b/examples/with-jest/package.json @@ -7,16 +7,17 @@ "react-dom": "^16.5.0" }, "devDependencies": { - "babel-core": "7.0.0-bridge.0", + "@babel/core": "^7.1.2", + "babel-core": "^7.0.0-bridge", "babel-jest": "^23.6.0", "enzyme": "3.4.3", "enzyme-adapter-react-16": "1.2.0", - "jest": "23.5.0", + "jest": "^23.6.0", "react-addons-test-utils": "15.6.2", "react-test-renderer": "16.4.2" }, "scripts": { - "test": "NODE_ENV=test jest", + "test": "jest", "dev": "next", "build": "next build", "start": "next start"