mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-31 05:03:21 +08:00
FIX jest
This commit is contained in:
parent
835ba93db0
commit
4b9053f9c4
@ -5,7 +5,10 @@
|
||||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
|
||||
"\\.(css|scss)$": "<rootDir>/__mocks__/styleMock.js"
|
||||
},
|
||||
"roots": ["packages"],
|
||||
"projects": [
|
||||
"<rootDir>/packages/*",
|
||||
"<rootDir>/examples/*"
|
||||
],
|
||||
"collectCoverage": false,
|
||||
"collectCoverageFrom": [
|
||||
"packages/**/*.{js,jsx}",
|
@ -14,6 +14,5 @@ script:
|
||||
- npm run lint
|
||||
- npm run test -- --coverage
|
||||
- npm run coverage
|
||||
- npm run test-examples
|
||||
git:
|
||||
depth: 1
|
||||
|
@ -15,10 +15,10 @@
|
||||
"eslint": "^3.19.0",
|
||||
"eslint-config-airbnb-base": "^11.1.3",
|
||||
"eslint-plugin-import": "^2.2.0",
|
||||
"eslint-plugin-jest": "^19.0.1",
|
||||
"eslint-plugin-jest": "^20.0.0",
|
||||
"eslint-plugin-prettier": "^2.0.1",
|
||||
"jest": "^20.0.0",
|
||||
"jest-enzyme": "^3.0.1",
|
||||
"jest-enzyme": "^3.1.0",
|
||||
"lerna": "2.0.0-rc.4",
|
||||
"prettier": "^1.1.0",
|
||||
"react": "^15.5.4",
|
||||
@ -29,9 +29,8 @@
|
||||
"scripts": {
|
||||
"bootstrap": "lerna bootstrap",
|
||||
"lint": "eslint .",
|
||||
"test": "jest --config ./.jestrc",
|
||||
"test": "jest --config ./.jestrc.json",
|
||||
"test:watch": "npm test -- --watch",
|
||||
"test-examples": "CI=true lerna run test",
|
||||
"coverage": "codecov"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user