diff --git a/package.json b/package.json index be15b815c52ad3a4dbf938ac248d7e1e89428eaf..4a0bc8e70a28e13bd19f3951185f799f4364b0f7 100755 --- a/package.json +++ b/package.json @@ -46,14 +46,14 @@ "react-fittext": "^1.0.0" }, "devDependencies": { + "@babel/preset-env": "^7.0.0-beta.36", + "@babel/preset-react": "^7.0.0-beta.36", "babel-eslint": "^8.1.2", "babel-jest": "^22.0.4", "babel-plugin-dva-hmr": "^0.4.1", "babel-plugin-import": "^1.6.3", "babel-plugin-transform-class-properties": "^6.24.1", "babel-plugin-transform-decorators-legacy": "^1.3.4", - "babel-preset-env": "^1.6.1", - "babel-preset-react": "^6.24.1", "cross-env": "^5.1.1", "cross-port-killer": "^1.0.1", "enzyme": "^3.1.0", @@ -86,8 +86,8 @@ }, "babel": { "presets": [ - "env", - "react" + "@babel/env", + "@babel/react" ], "plugins": [ "transform-decorators-legacy", diff --git a/src/e2e/home.e2e.js b/src/e2e/home.e2e.js deleted file mode 100644 index 61b0cd83a89568f5a88364c15196f2ff5b1064e4..0000000000000000000000000000000000000000 --- a/src/e2e/home.e2e.js +++ /dev/null @@ -1,9 +0,0 @@ -import Nightmare from 'nightmare'; - -describe('Homepage', () => { - it('it should have logo text', async () => { - const page = Nightmare().goto('http://localhost:8000'); - const text = await page.wait('h1').evaluate(() => document.body.innerHTML).end(); - expect(text).toContain('

Ant Design Pro

'); - }); -});