You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ls -1 .cache/__tests__/
__snapshots__
find-page.js
loader.js
prefetcher.js
I am using yarn's workspace support and jest. Jest by default tries to run the tests in the cache and fails with a bunch of errors like:
Loader › It stops downloading when the resourcesArray is empty
TypeError: Cannot read property 'empty' of undefined
at Object.<anonymous> (my_site/.cache/__tests__/prefetcher.js:11:15)
at Promise (<anonymous>)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:169:7)
In order to get my tests to pass I had to add the cache directory to jests's ignores in package.json:
It appears gatsby caches its tests:
I am using
yarn
's workspace support andjest
. Jest by default tries to run the tests in the cache and fails with a bunch of errors like:In order to get my tests to pass I had to add the cache directory to jests's ignores in
package.json
:The text was updated successfully, but these errors were encountered: