Skip to content

rdiazv/jest-directory-named-resolver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Custom jest resolver to check for files matching directory name

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%