Skip to content

JoaoSouMoreira/jest-aliasify-resolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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(<path>).pipe(jest({
    config: {
        ...
        resolver: "jest-aliasify-resolver",
        ...
    }
}));
...

And voilá! Now your custom imports should resolve according to the aliases you have set up.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published