Open virtuoushub opened 1 year ago
I've been seeing this once or twice too :+1:
Eg: https://github.com/redwoodjs/redwood/actions/runs/6038395635/job/16390496793?pr=9104 Eg: https://github.com/redwoodjs/redwood/actions/runs/6040265077/job/16390819253?pr=9058
wonder if this is a better candidate for a integration test rather than a unit? All that mocking of delays in jest seems too synthetic and tricky to get right.
Cypress and Playwright seem like a better place for this type of test imho, even though from what I can tell we might still run into a similar issue; but it seems closer to real world use cases in an integration test than a unit.
possible flakey test:
test code: https://github.com/redwoodjs/redwood/blob/main/packages/router/src/__tests__/router.test.tsx#L502-L545
see: https://github.com/redwoodjs/redwood/actions/runs/6032779642/job/16368480189#step:10:342
Originally posted by @virtuoushub in https://github.com/redwoodjs/redwood/issues/9082#issuecomment-1701312672