jest-jasmine2
Advanced tools
Comparing version 28.0.0-alpha.7 to 28.0.0-alpha.8
@@ -133,6 +133,8 @@ 'use strict'; | ||
if (config.timers === 'fake' || config.timers === 'modern') { | ||
environment.fakeTimersModern.useFakeTimers(); | ||
} else if (config.timers === 'legacy') { | ||
environment.fakeTimers.useFakeTimers(); | ||
if (config.fakeTimers.enableGlobally) { | ||
if (config.fakeTimers.legacyFakeTimers) { | ||
environment.fakeTimers.useFakeTimers(); | ||
} else { | ||
environment.fakeTimersModern.useFakeTimers(); | ||
} | ||
} | ||
@@ -152,3 +154,6 @@ | ||
if (config.timers === 'legacy') { | ||
if ( | ||
config.fakeTimers.enableGlobally && | ||
config.fakeTimers.legacyFakeTimers | ||
) { | ||
environment.fakeTimers.useFakeTimers(); | ||
@@ -155,0 +160,0 @@ } |
{ | ||
"name": "jest-jasmine2", | ||
"version": "28.0.0-alpha.7", | ||
"version": "28.0.0-alpha.8", | ||
"repository": { | ||
@@ -20,7 +20,7 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/environment": "^28.0.0-alpha.7", | ||
"@jest/expect": "^28.0.0-alpha.7", | ||
"@jest/environment": "^28.0.0-alpha.8", | ||
"@jest/expect": "^28.0.0-alpha.8", | ||
"@jest/source-map": "^28.0.0-alpha.6", | ||
"@jest/test-result": "^28.0.0-alpha.7", | ||
"@jest/types": "^28.0.0-alpha.7", | ||
"@jest/test-result": "^28.0.0-alpha.8", | ||
"@jest/types": "^28.0.0-alpha.8", | ||
"@types/node": "*", | ||
@@ -30,9 +30,9 @@ "chalk": "^4.0.0", | ||
"is-generator-fn": "^2.0.0", | ||
"jest-each": "^28.0.0-alpha.7", | ||
"jest-matcher-utils": "^28.0.0-alpha.7", | ||
"jest-message-util": "^28.0.0-alpha.7", | ||
"jest-runtime": "^28.0.0-alpha.7", | ||
"jest-snapshot": "^28.0.0-alpha.7", | ||
"jest-util": "^28.0.0-alpha.7", | ||
"pretty-format": "^28.0.0-alpha.7", | ||
"jest-each": "^28.0.0-alpha.8", | ||
"jest-matcher-utils": "^28.0.0-alpha.8", | ||
"jest-message-util": "^28.0.0-alpha.8", | ||
"jest-runtime": "^28.0.0-alpha.8", | ||
"jest-snapshot": "^28.0.0-alpha.8", | ||
"jest-util": "^28.0.0-alpha.8", | ||
"pretty-format": "^28.0.0-alpha.8", | ||
"throat": "^6.0.1" | ||
@@ -49,3 +49,3 @@ }, | ||
}, | ||
"gitHead": "06f58f8ca70abc9c09d554967935b58ce85c48d6" | ||
"gitHead": "d915e7df92b220dbe6e124585ba6459838a6c41c" | ||
} |
116124
3495
Updated@jest/expect@^28.0.0-alpha.8
Updated@jest/types@^28.0.0-alpha.8
Updatedjest-each@^28.0.0-alpha.8
Updatedjest-runtime@^28.0.0-alpha.8
Updatedjest-util@^28.0.0-alpha.8