Skip to content

Commit

Permalink
tweak check
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 1, 2019
1 parent e30e4ac commit b52b1ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/jest-runtime/src/index.js
Expand Up @@ -946,7 +946,9 @@ class Runtime {
return jestObject;
};
const _getFakeTimers = () => {
if (!this._environment.fakeTimers) {
if (
!(this._environment.fakeTimers || this._environment.fakeTimersLolex)
) {
this._logFormattedReferenceError(
'You are trying to access a property or method of the Jest environment after it has been torn down.',
);
Expand Down

0 comments on commit b52b1ea

Please sign in to comment.