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
i was using fetch-mock v11 which was working great along with node:test, but i upgraded to v12 and after taking steps to migrate, my preexisting tests will now pass as long as i run one at a time via --test-only but will fail if i attempt to run any combination of multiple tests. any ideas what i am missing? am i leaving out some awaits or something? heres a copy of my test file. thanks.
It makes sense that they'd only work one at a time as each one mocks and adds different routes to fetch independently; if they run in parallel then they are bound to interfere as they are all acting on a single fetch implementation.
Are you able to share your code from before the upgrade? I'm confused how they could have passed TBH
node v22.5.1
npm 10.8.2
fetch-mock 12.0.2
i was using fetch-mock v11 which was working great along with
node:test
, but i upgraded to v12 and after taking steps to migrate, my preexisting tests will now pass as long as i run one at a time via--test-only
but will fail if i attempt to run any combination of multiple tests. any ideas what i am missing? am i leaving out someawaits
or something? heres a copy of my test file. thanks.The text was updated successfully, but these errors were encountered: