From 09cb24b9b37547f1bdf71a8f4f63ec4efbad7503 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Fri, 1 Feb 2019 17:22:20 +0100 Subject: [PATCH] tweak check --- packages/jest-runtime/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-runtime/src/index.js b/packages/jest-runtime/src/index.js index b05ddae6e24e..41ec826ddd5c 100644 --- a/packages/jest-runtime/src/index.js +++ b/packages/jest-runtime/src/index.js @@ -946,7 +946,7 @@ class Runtime { return jestObject; }; const _getFakeTimers = () => { - if (!this._environment.fakeTimers) { + if (!this._fakeTimersImplementation) { this._logFormattedReferenceError( 'You are trying to access a property or method of the Jest environment after it has been torn down.', );