I’m trying to fix some broken tests in a recently created angular cli application. I’ve defined an AuthenticationService which I intend to use to abstract Okta types from the rest of my application. All tests for components which depend on my AuthenticationService fail when I attempt to run using a test runner vs code extension with the same error message:
● Test suite failed to run
The specified module could not be found. \\?\C:\src\FrontEnd\Client\node_modules\microtime\prebuilds\win32-x64\electron-napi.node at Runtime._loadModule (node_modules/jest-runtime/build/index.js:1180:29) at load (node_modules/node-gyp-build/index.js:19:10) at Object.<anonymous> (node_modules/microtime/index.js:1:125)
After examining my yarn.lock, I believe microtime is only a dependency because broadcast-channel is a dependency of @okta/okta-auth-js.
Thoughts?