JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 280
  • Score
    100M100P100Q82706F
  • License MIT

Add jest support to any projects

Package Exports

  • generator-jest/generators/app

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (generator-jest) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

generator-jest NPM version Build Status Dependency Status Coverage percentage

Add jest support to any projects

Installation

First, install Yeoman and generator-jest using npm (we assume you have pre-installed node.js).

npm install -g yo generator-jest

Then generate your new project:

yo jest

Once done, you can run tests using npm test.

Include generator-jest in your own generator

generator-jest is built to create as minimum overhead as possible when including in your own generators.

First, install generator-jest as a dependency of your own generator.

npm install --save generator-jest

Then call it from your generator.

this.composeWith(require.resolve('generator-jest'), {
  testEnvironment: 'jsdom', // (optional) pass one of jsdom or node
  coveralls: true // (optional) send coverage reports to coveralls
});

License

MIT © Simon Boudrias