0.4.1 • Published 3 years ago

@lcdev/jest v0.4.1

Weekly downloads
268
License
MPL-2.0
Repository
-
Last release
3 years ago

Jest

npm.io npm.io

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.

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.1.4

4 years ago