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
The text was updated successfully, but these errors were encountered:
virtuoushub
changed the title
slow imports › usePageLoadingContext possible flakey unit test
[Bug?]: slow imports › usePageLoadingContext possible flakey unit test
Aug 31, 2023
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 #9082 (comment)
The text was updated successfully, but these errors were encountered: