@gasket/plugin-jest
Creates a jest with enzyme based testing environment for your Gasket
application.
Installation
This plugin is only used by presets for create-gasket-app and is not installed for apps.
Usage
When you create a new Gasket application that is configured with the jest
plugin it will prepare it with a jest based testing environment. It will add
the following scripts to the package.json:
npm test, Runs the files matching default jest glob pattern, i.e. includes files from tests folder and all*.test.jsor*.spec.jsfiles.npm run test:watchSame asnpm testbut now watches your tests and automatically re-runs the tests when changes are detected.npm run test:coverageSame asnpm test, but generates coverage information for all the files matching thecollectCoverageFrompattern injest.config.jsfile.
enzyme is included with this plugin, which makes it easier to assert,
manipulate, and traverse your React Components.