Skip to content

[Bug]: TypeError: config.toFake and config.toNotFake cannot be used together #1218

@felixmosh

Description

@felixmosh

Version

System:
    OS: macOS 26.3.1
    CPU: (12) arm64 Apple M3 Pro
    Memory: 150.27 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 147.0.7727.138
    Firefox: 150.0
    Safari: 26.3.1
  npmPackages:
    @rstest/core: ^0.9.10 => 0.9.10
    @rstest/adapter-rsbuild: ^0.2.6 => 0.2.6

Details

I'm testing an API service, therefore, sometimes, when I'm using

rstest.useFakeTimers({ toNotFake: ['setImmediate'] });

it throws...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions