1
0
Fork 0
mirror of synced 2024-07-27 17:16:23 +12:00
budibase/qa-core/scripts/jestSetup.js

12 lines
333 B
JavaScript
Raw Normal View History

// mock all dates to 2020-01-01T00:00:00.000Z
// use tk.reset() to use real dates in individual tests
const MOCK_DATE = new Date("2020-01-01T00:00:00.000Z")
const tk = require("timekeeper")
tk.freeze(MOCK_DATE)
if (!process.env.DEBUG) {
global.console.log = jest.fn() // console.log are ignored in tests
}
2022-10-01 14:54:51 +13:00
2023-02-02 00:08:35 +13:00
jest.setTimeout(60000)