Use roadhog test (#640)
* update .gitignore * Use roadhog test replace jest * upgrade roadhog
Showing
| ... | @@ -15,8 +15,8 @@ | ... | @@ -15,8 +15,8 @@ | 
| "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style", | "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style", | ||
| "lint-staged": "lint-staged", | "lint-staged": "lint-staged", | ||
| "lint-staged:js": "eslint --ext .js", | "lint-staged:js": "eslint --ext .js", | ||
| "test": "jest", | "test": "roadhog test", | ||
| "test:comps": "jest ./src/components", | "test:component": "roadhog test ./src/components", | ||
| "test:all": "node ./tests/run-tests.js" | "test:all": "node ./tests/run-tests.js" | ||
| }, | }, | ||
| "dependencies": { | "dependencies": { | ||
| ... | @@ -46,20 +46,13 @@ | ... | @@ -46,20 +46,13 @@ | 
| "react-fittext": "^1.0.0" | "react-fittext": "^1.0.0" | ||
| }, | }, | ||
| "devDependencies": { | "devDependencies": { | ||
| "@babel/core": "^7.0.0-beta.37", | |||
| "@babel/preset-env": "^7.0.0-beta.36", | |||
| "@babel/preset-react": "^7.0.0-beta.36", | |||
| "babel-core": "^7.0.0-bridge.0", | |||
| "babel-eslint": "^8.1.2", | "babel-eslint": "^8.1.2", | ||
| "babel-jest": "^22.0.4", | |||
| "babel-plugin-dva-hmr": "^0.4.1", | "babel-plugin-dva-hmr": "^0.4.1", | ||
| "babel-plugin-import": "^1.6.3", | "babel-plugin-import": "^1.6.3", | ||
| "babel-plugin-transform-class-properties": "^6.24.1", | |||
| "babel-plugin-transform-decorators-legacy": "^1.3.4", | "babel-plugin-transform-decorators-legacy": "^1.3.4", | ||
| "cross-env": "^5.1.1", | "cross-env": "^5.1.1", | ||
| "cross-port-killer": "^1.0.1", | "cross-port-killer": "^1.0.1", | ||
| "enzyme": "^3.1.0", | "enzyme": "^3.1.0", | ||
| "enzyme-adapter-react-16": "^1.0.2", | |||
| "eslint": "^4.14.0", | "eslint": "^4.14.0", | ||
| "eslint-config-airbnb": "^16.0.0", | "eslint-config-airbnb": "^16.0.0", | ||
| "eslint-plugin-babel": "^4.0.0", | "eslint-plugin-babel": "^4.0.0", | ||
| ... | @@ -70,15 +63,12 @@ | ... | @@ -70,15 +63,12 @@ | 
| "eslint-plugin-react": "^7.0.1", | "eslint-plugin-react": "^7.0.1", | ||
| "gh-pages": "^1.0.0", | "gh-pages": "^1.0.0", | ||
| "husky": "^0.14.3", | "husky": "^0.14.3", | ||
| "jest": "^22.0.4", | |||
| "jsdom": "^11.5.1", | |||
| "lint-staged": "^6.0.0", | "lint-staged": "^6.0.0", | ||
| "mockjs": "^1.0.1-beta3", | "mockjs": "^1.0.1-beta3", | ||
| "pro-download": "^1.0.1", | "pro-download": "^1.0.1", | ||
| "react-test-renderer": "^16.2.0", | |||
| "redbox-react": "^1.5.0", | "redbox-react": "^1.5.0", | ||
| "regenerator-runtime": "^0.11.1", | "regenerator-runtime": "^0.11.1", | ||
| "roadhog": "^2.0.6", | "roadhog": "^2.1.0", | ||
| "roadhog-api-doc": "^0.3.4", | "roadhog-api-doc": "^0.3.4", | ||
| "rollbar": "^2.3.4", | "rollbar": "^2.3.4", | ||
| "stylelint": "^8.4.0", | "stylelint": "^8.4.0", | ||
| ... | @@ -87,32 +77,6 @@ | ... | @@ -87,32 +77,6 @@ | 
| "optionalDependencies": { | "optionalDependencies": { | ||
| "nightmare": "^2.10.0" | "nightmare": "^2.10.0" | ||
| }, | }, | ||
| "babel": { | |||
| "presets": [ | |||
| "@babel/preset-env", | |||
| "@babel/preset-react" | |||
| ], | |||
| "plugins": [ | |||
| "transform-decorators-legacy", | |||
| "transform-class-properties" | |||
| ] | |||
| }, | |||
| "jest": { | |||
| "setupFiles": [ | |||
| "<rootDir>/tests/setupTests.js" | |||
| ], | |||
| "testMatch": [ | |||
| "**/?(*.)(spec|test|e2e).js?(x)" | |||
| ], | |||
| "setupTestFrameworkScriptFile": "<rootDir>/tests/jasmine.js", | |||
| "moduleFileExtensions": [ | |||
| "js", | |||
| "jsx" | |||
| ], | |||
| "moduleNameMapper": { | |||
| "\\.(css|less)$": "<rootDir>/tests/styleMock.js" | |||
| } | |||
| }, | |||
| "lint-staged": { | "lint-staged": { | ||
| "**/*.{js,jsx}": "lint-staged:js", | "**/*.{js,jsx}": "lint-staged:js", | ||
| "**/*.less": "stylelint --syntax less" | "**/*.less": "stylelint --syntax less" | ||
| ... | ... | 
tests/jasmine.js
deleted
100644 → 0
tests/setupTests.js
deleted
100644 → 0
tests/styleMock.js
deleted
100644 → 0
Please register or sign in to comment