fix(jest): dont use fake timers by default

Introduced by 844efb88d

The upgrade to Jest 27 (15630aee5) revealed this issue.
This commit is contained in:
Julien Fontanet 2021-11-05 13:23:18 +01:00
parent 7f9a970714
commit ae549e2a88
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,8 @@
import { createSchedule } from './' import { createSchedule } from './'
jest.useFakeTimers()
const wrap = value => () => value const wrap = value => () => value
describe('issues', () => { describe('issues', () => {

View File

@ -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"