@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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.4.1
    2
  • 0.4.0
    1
  • 0.3.0
    13
  • 0.2.1
    3
  • 0.1.4
    1

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