Skip to content Skip to sidebar Skip to footer

Cannot Find Module With **/*.test.js

I'm trying to set up testing for my Next.js project. I want to test it with RITEway which is based on tape. I want a test command that finds all files in my src/ folder that end wi

Solution 1:

As Jon Sharpe said, you have to feed the regex into riteway.

"test": "NODE_ENV=test riteway -r @babel/register 'src/**/*.test.js'",

Post a Comment for "Cannot Find Module With **/*.test.js"