fix(jest): dont use fake timers by default
Introduced by844efb88d
The upgrade to Jest 27 (15630aee5
) revealed this issue.
This commit is contained in:
parent
7f9a970714
commit
ae549e2a88
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
import { createSchedule } from './'
|
import { createSchedule } from './'
|
||||||
|
|
||||||
|
jest.useFakeTimers()
|
||||||
|
|
||||||
const wrap = value => () => value
|
const wrap = value => () => value
|
||||||
|
|
||||||
describe('issues', () => {
|
describe('issues', () => {
|
||||||
|
@ -61,8 +61,7 @@
|
|||||||
"/xo-server-test/",
|
"/xo-server-test/",
|
||||||
"/xo-web/"
|
"/xo-web/"
|
||||||
],
|
],
|
||||||
"testRegex": "\\.spec\\.js$",
|
"testRegex": "\\.spec\\.js$"
|
||||||
"timers": "fake"
|
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{md,ts,ts}": "prettier --write"
|
"*.{md,ts,ts}": "prettier --write"
|
||||||
|
Loading…
Reference in New Issue
Block a user