How to get fast unit tests with(out) Webpack
Tomaž Zaman
286

As usual, taking a break and walking away for a bit, I came up with a solution!

if (( path.indexOf(‘actions’ ) === 0) || …) {
 path = resolve( `./src/${path}`);
 }

Now on to getting a decent regex to eliminate the repetition in the ‘or’ statement…