I've been trying to reproduce flaky tests, that only fail on our CI system, locally. I suspect that the failures are related to the CI worker being on high load and tests with bad "timing" then fail.
I wrote this package.json script to run tests locally on an ARM Mac with limited resources, which somewhat helps:
"test-slow": "taskpolicy -b -g throttle -c maintenance node ./node_modules/jest/bin/jest.js -i --testTimeout=10000",
$ yarn test-slow SomeFlakyTest
=> More informations about this toot | View the thread | More toots from bassistance@chaos.social
text/gemini
This content has been proxied by September (3851b).