As Jon Sharpe said, you have to feed the regex into riteway
.
"test": "NODE_ENV=test riteway -r @babel/register 'src/**/*.test.js'",
solved Cannot find module with **/*.test.js
As Jon Sharpe said, you have to feed the regex into riteway
.
"test": "NODE_ENV=test riteway -r @babel/register 'src/**/*.test.js'",
solved Cannot find module with **/*.test.js