@lcdev/jest

0.4.1 • Public • Published

Jest

Common jest configuration items for packages and services.

yarn add @lcdev/jest@VERSION

Add to your package.json:

  "jest": {
    "preset": "@lcdev/jest"
  }

This package enables support for typescript and other common config items. You may need more than just the preset for more complex environments.

For example, you may want moduleNameMapper for @/components/Button style imports:

  "jest": {
    "preset": "@lcdev/jest",
    "moduleNameMapper": {
      "^@/(.*)$": "<rootDir>/src/$1"
    }
  }

We don't support enzyme or similar environments out of the box, but there are some example projects. Further documentation is needed.

Dependents (0)

Package Sidebar

Install

npm i @lcdev/jest

Weekly Downloads

20

Version

0.4.1

License

MPL-2.0

Unpacked Size

1.76 kB

Total Files

3

Last publish

Collaborators

  • jbrandtlc
  • joelgallant-me
  • servalldev
  • gregnr