Jest Tests with React and CRA.

I've run into a problem using jest and using includes. If I want to include some external library reference in my test, and I try to import in the spec file, when I run the tests, the import resolution always fails with a module not found error. I've tried messing with various parameters in package.json to aid path resolution, but nothing I've tried has worked. I even created a sample jest app using the react example on the website, and the same problem occurs with a brand new empty project. This is severely limited my ability to use jest tests. I even posted on stack overflow and got zero responses. I'm open to any ideas on how to sort this out.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server