Skip to content

etienne-graveyard/jest-ts-tsx-resolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED

I no longer use this module, and I will not maintain it.

Feel free to fork it if you want to maintain it yourself.

Jest TypeScript Web-Compatible Resolver

TypeScript allows importing other TypeScript files with a .js extension, for compatibility with the ES6 modules loader specification. Unfortunately, Jest gets confused by this and complains that it's not able to find the JavaScript file.

This is a resolver that catches that error, and then tries to resolve it again but with a .ts / .tsx extension.

Installation & Set-Up

Install this module into your project using npm:

npm install -D jest-ts-tsx-resolver

Then add it to your Jest config file as the resolver:

"resolver": "jest-ts-tsx-resolver"

About

Replace js and jsx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published