0.11.1 • Published 3 years ago
lerna-jest v0.11.1
lerna-jest
Oversimplify jest configuration for common use cases.
Install
npm install -d jest lerna-jestConfigure
- Create file
jest.config.jsin your lerna root.
const { guessRootConfig } = require('lerna-jest')
module.exports = guessRootConfig(__dirname)- Configure test script in lerna root
package.json.
{
"scripts": {
"test": "jest"
}
}If you fit the common use cases = you've got some tests and a linter, then you're done for all of your projects. Now you can just use common npm interface to run tests.
npm test -- --watchMagic setup files
Create these files on the lerna root level or inside the project and they will be automatically used to configure jest environment:
jest.setup.jsgoes in setupFiles.jest.afterEnv.jsgoes in setupFilesAfterEnv
Magic plugins
Some plugins are automatically recognized, you only need to install them:
0.11.0
3 years ago
0.11.1
3 years ago
0.10.0
3 years ago
0.9.0
3 years ago
0.8.0
3 years ago
0.5.7
3 years ago
0.6.3
3 years ago
0.6.2
3 years ago
0.5.6
3 years ago
0.7.0
3 years ago
0.6.1
3 years ago
0.6.0
3 years ago
0.5.4
5 years ago
0.3.0
5 years ago
0.2.2
5 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago