jest-directory-named-resolver

0.3.0 • Public • Published

jest-directory-named-resolver

Allow Jest require paths to look for files that match the directory name when trying to resolve. For use with directory-named-webpack-plugin.

Install and Configure

Install the package:

yarn add jsonnull/jest-directory-named-resolver

Configure Jest to use the custom resolver:

"jest"{
  "resolver": "jest-directory-named-resolver"
}

See the resolver option from the Jest documentation.


NOTE: Custom resolvers are not yet in a published Jest release, so in order to use this you will need to run your tests off a local build of Jest. See the Jest CONTRIBUTING.md for information on how to test using a local build.

Readme

Keywords

none

Package Sidebar

Install

npm i jest-directory-named-resolver

Weekly Downloads

1,763

Version

0.3.0

License

MIT

Unpacked Size

4.13 kB

Total Files

15

Last publish

Collaborators

  • jsonnull