https://github.com/joaosoumoreira/jest-aliasify-resolver
https://github.com/joaosoumoreira/jest-aliasify-resolver
aliasify browserify jest resolver
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/joaosoumoreira/jest-aliasify-resolver
- Owner: JoaoSouMoreira
- License: mit
- Created: 2017-03-27T15:38:13.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-18T18:32:47.000Z (almost 9 years ago)
- Last Synced: 2025-06-22T21:01:47.950Z (12 months ago)
- Topics: aliasify, browserify, jest, resolver
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jest-aliasify-resolver
This extension allows you to use aliasify transform with the `Jest` testing framework.
# Installation
Install with `npm install --save-dev jest-aliasify-resolver`
# Usage
After adding your aliases to either your package.json or to an `aliasify` config file, change the following field on your `jest` config file to
{
...
"resolver": "jest-aliasify-resolver",
...
}
Or if you're using `gulp-jest`, don't forget to pass the resolver into the config object
...
return gulp.src().pipe(jest({
config: {
...
resolver: "jest-aliasify-resolver",
...
}
}));
...
And _voilá_! Now your custom imports should resolve according to the aliases you have set up.