Steps to Reproduce: Clone the repo npm i npm test Note the error: Error: Failed to load url ~foo/foo.js (resolved id: ~foo/foo.js) Remove the extension from the import in index.spec.ts to see the test pass.