Skip to content

[feature] Missing API: Scheduler#postTask #418

@benjamingr

Description

@benjamingr

There are a few things missing in fake-timers we need to add for Node 17 and for new browser APIs namely:

  • We're missing mocking of timers/promises and scheduler.wait (in timers/promises)
  • We're missing Symbol.toPrimitive on Node timers (right?)
  • We're missing scheduler.postTask with a delay

None of these new APIs are particularly hard to mock but I haven't had a chance to look at them yet.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions