Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Custom jest resolver to check for files matching directory name

License

Notifications You must be signed in to change notification settings

jsonnull/jest-directory-named-resolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 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

Packages

No packages published