afc163 8 лет назад
Родитель
Сommit
668074c8b0
2 измененных файлов с 4 добавлено и 13 удалено
  1. 4 4
      package.json
  2. 0 9
      src/e2e/home.e2e.js

+ 4 - 4
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",

+ 0 - 9
src/e2e/home.e2e.js

@@ -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('<h1>Ant Design Pro</h1>');
-  });
-});