jest-aliasify-resolver

1.1.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i jest-aliasify-resolver

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • joaosomoreira