I am currently working with jest for my application and I am having this error when running the test npm run test
UnhandledPromiseRejectionWarning: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './internal/Observable' is not defined by "exports" in /Applications/App/node_modules/@nrwl/workspace/node_modules/rxjs/package.json
at applyExports (internal/modules/cjs/loader.js:491:9)
at resolveExports (internal/modules/cjs/loader.js:507:23)
at Function.Module._findPath (internal/modules/cjs/loader.js:635:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1007:27)
at Function.Module._load (internal/modules/cjs/loader.js:890:27)
at Module.require (internal/modules/cjs/loader.js:1080:19)
To solve this problem you can try running an audit fix with this command
npm audit fix
This command basically submits a description of the dependencies configured in your package to your default registry and asks for a report of known vulnerabilities. npm audit checks direct dependencies, devDependencies, bundledDependencies, and optionalDependencies, but does not check peerDependencies. https://docs.npmjs.com/auditing-package-dependencies-for-security-vulnerabilities