emberjs / emberjs/ember-test-helpers

Timecop is freezing tests

Open
#245 13 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
188
Forks
254
PR merge metrics
No merged PRs in 30d

Description

We are using https://github.com/matteodepalo/ember-cli-timecop in a few component integration tests and until now this worked fine. We tried to convert those tests to use the new testing APIs, but now `Timecop.freeze()` seems to block the `async render(...)` call from continuing.

An issue similar to this has existed in the past where Backburner.js would not continue running when `Date.now()` is mocked and frozen, but was fixed by getting a reference to the `Date` object on startup and then using that reference instead of the temporary mocked global.

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.