norm-build-jest
v1.0.23
Published
Adds a handful of jest packages and associated configuration - so you don't have to.
Readme
norm-build-jest
Adds a handful of jest packages and associated configuration - so you don't have to.
To use:
- install
norm-build-jestand its peer dependencynorm-buildnpm install norm-build-jest norm-buildif you use npmyarn add norm-build-jest norm-buildif you use yarn
- copy the "jest.config.js" file into the root of your repo.
- it tells jest to use this module when it runs; its content is simply
module.exports = require('norm-build-jest')
- it tells jest to use this module when it runs; its content is simply
Usage:
- It works like jest but handles norm-build javascript files. Call a file
x.test.tsandyarn jestwill run it. - Any test files ending in
.jsor.jsxcan use flow - Any test files ending in
.tsor.tsxcan use typescript
Bundled plugins:
- jest-image-snapshot with types
- jest-junit
Bundled config:
- Auto detects global setup and teardown files in the root matching
jest\.setup\.[jt]sx?andjest\.teardown\.[jt]sx?
