denoland / denoland/std

suggestion: mock `performance.now()` in `FakeTime`

Open
#4,552 8 comments 0 reactions 0 assignees View on GitHub
feedback welcome suggestion testing
Dominant language
TypeScript
Stars
3.6k
Forks
681
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

The `FakeTime` class only seems to mock things such as `Date.now()`.

**Describe the solution you'd like**

To have it also mock `performance.now()`.

**Describe alternatives you've considered**

I'm just mocking it myself right now but it's not pretty.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.