Skip to content

MSW stopped working when using fake timers (v2.11.2) #2581

@Turbo87

Description

@Turbo87

Prerequisites

Environment check

  • I'm using the latest msw version
  • I'm using Node.js version 20 or higher

Browsers

Firefox, Chromium (Chrome, Brave, etc.), Safari

Reproduction repository

https://github.com/rust-lang/crates.io

Reproduction steps

So far I've only got rust-lang/crates.io#11876 as a reproduction. I'll try to come up with a way to reproduce this locally.

Current behavior

After installing v2.11.2, it seems that MSW stopped working completely once @sinonjs/fake-timers is being used. I assume that this is related to the new behavior added by #2578.

Expected behavior

MSW should keep working independently from fake timers being used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds:discussionneeds:triageIssues that have not been investigated yet.scope:browserRelated to MSW running in a browser

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions