spire-plugin-jest

5.0.8 • Public • Published

spire-plugin-jest

Jest plugin for Spire.

Hooks

  • setup Adds test command and prepares jest arguments.
  • precommit Adds jest linter.
  • run Runs jest tests.

Options

  • Plugin ['spire-plugin-jest', options]

    • command <string> Command to run jest on. Defaults to test.
    • jestConfig <string> Default [jest] configuration. Defaults to ./jest-preset.js
    • allowCustomConfig <boolean> Whether to allow user-provided config. If this option is false and there's custom jest config found it will throw an error. Defaults to true.
    • glob <string> Linter glob to run on precommit. Defaults to *.js.
  • CLI npx spire test [args]

    • Passes all arguments as-is to jest.

Readme

Keywords

none

Package Sidebar

Install

npm i spire-plugin-jest

Weekly Downloads

9

Version

5.0.8

License

MIT

Unpacked Size

12 kB

Total Files

7

Last publish

Collaborators

  • sbekrin
  • researchgate-bot
  • stefanhoth
  • mdio