Skip to content

This repo describes how to fix unintuitive error. afaik it was due bad tests code structre(js import/export some vars), and promises.

Notifications You must be signed in to change notification settings

sequencerr/jest-repro-retries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo describes how to fix unintuitive error. afaik it was due bad tests code structre(js import/export some vars), and promises.

$ npx jest

workaround:

$ NODE_OPTIONS=--unhandled-rejections=warn npx jest

or try --maxWorkers 2, --maxWorkers $(nproc)

references:

https://github.com/jestjs/jest/issues?page=2&q=retries+is%3Aissue jestjs/jest#8769 jestjs/jest#13658 jestjs/jest#13007

jest.retryTimes // This only works with jest-circus!

https://www.google.com/search?q=jest+retry+limit+disable

https://dev.to/ninthsun91/jest-worker-encountered-4-child-process-exceptions-exceeding-retry-limit-82o https://www.dhiwise.com/post/solve-jest-worker-encountered-4-child-process-exceptions

TanStack/query#1090

https://jestjs.io/docs/next/configuration

https://stackoverflow.com/q/70007464 // 130k view, 60 upvotes

About

This repo describes how to fix unintuitive error. afaik it was due bad tests code structre(js import/export some vars), and promises.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published