diff --git a/.gitignore b/.gitignore index 21ab9fb7..22f005ba 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ functions/* # umi .umi .umi-production +.umi-test # screenshot screenshot diff --git a/jest.config.js b/jest.config.js deleted file mode 100644 index 47295738..00000000 --- a/jest.config.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = { - testURL: 'http://localhost:8000', - verbose: false, - extraSetupFiles: ['./tests/setupTests.js'], - globals: { - ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: false, - localStorage: null, - }, -}; diff --git a/package.json b/package.json index d17e23fa..e6ecabd9 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,6 @@ "start:no-mock": "cross-env MOCK=none UMI_ENV=dev max dev", "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev max dev", "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev max dev", - "test": "max test", - "test:component": "max test ./src/components", "test:e2e": "node ./tests/run-tests.js", "tsc": "tsc --noEmit" }, @@ -65,7 +63,6 @@ "@types/classnames": "^2.3.1", "@types/express": "^4.17.0", "@types/history": "^4.7.0", - "@types/jest": "^26.0.0", "@types/lodash": "^4.14.0", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", @@ -79,7 +76,6 @@ "eslint": "^7.32.0", "gh-pages": "^3.2.0", "husky": "^7.0.4", - "jsdom-global": "^3.0.0", "lint-staged": "^10.0.0", "mockjs": "^1.1.0", "prettier": "^2.5.0",