Browse Source

chore: remove jest (#10038)

Co-authored-by: xiaohuoni <chen.xiaocong2@iwhalecloud.com>
pull/10092/head
聪小陈 4 years ago
committed by GitHub
parent
commit
fb0cb6bc9d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .gitignore
  2. 9
      jest.config.js
  3. 4
      package.json

1
.gitignore

@ -31,6 +31,7 @@ functions/*
# umi
.umi
.umi-production
.umi-test
# screenshot
screenshot

9
jest.config.js

@ -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,
},
};

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

Loading…
Cancel
Save