Run jest for all packages

This commit is contained in:
nndio 2019-01-09 02:18:30 +02:00
parent da72f6778a
commit 4d03f18bf7
3 changed files with 9 additions and 5 deletions

3
jest.config.js Normal file
View File

@ -0,0 +1,3 @@
module.exports = {
setupFiles: ['devui/tests/setup.js']
};

View File

@ -2,9 +2,10 @@
"private": true,
"devDependencies": {
"babel-eslint": "^10.0.0",
"eslint-plugin-react": "7.4.0",
"eslint-plugin-flowtype": "3.2.0",
"lerna": "3.4.2",
"eslint-plugin-flowtype": "3.2.1",
"eslint-plugin-react": "7.12.3",
"jest": "^23.6.0",
"lerna": "3.9.0",
"pre-commit": "^1.1.3"
},
"scripts": {
@ -16,8 +17,8 @@
"next": "lerna publish --bump prerelease --npm-tag next",
"lint": "lerna run lint --since master -- --color",
"lint:all": "lerna run lint -- --color",
"test": "lerna run test --since master -- --colors",
"test:all": "lerna run test -- --colors"
"test": "jest --onlyChanged",
"test:all": "jest"
},
"workspaces": [
"packages/*"