Sometimes stale cache can have unintended side effects. Here are some ways to clear the cache.
rm -rf node_modules/nx/.cache
clears the nx cache
pnpm jest --clearCache
clears the jest cache for unit & integration specs
pnpm cypress cache clear
Add --skip-nx-cache
to nx
command
For running cypress, we have created a special command that starts web and API before running the Cypress specs.
pnpm e2e
this runs it in watch mode
If you see Error: Could not find a production build in the
, run nx run build:web:test --skip-nx-cache
.
If you're Cypress is not opening, try pnpm cypress open
. Sometimes when using a new version of Cypress, it needs to be manually opened for the first time.