1
0
Fork 0
mirror of synced 2024-08-15 18:11:40 +12:00

Fix timespan issues

This commit is contained in:
adrinr 2023-01-25 11:51:08 +00:00
parent 8f186041ac
commit 74269dbb27

View file

@ -10,8 +10,9 @@ import * as structures from "../../tests/utilities/structures"
import { MIGRATIONS } from "../"
import * as helpers from "./helpers"
const { mocks } = require("@budibase/backend-core/tests")
const timestamp = mocks.date.MOCK_DATE.toISOString()
import tk from "timekeeper"
const timestamp = new Date().toISOString()
tk.freeze(timestamp)
const clearMigrations = async () => {
const dbs = [context.getDevAppDB(), context.getProdAppDB()]
@ -24,6 +25,10 @@ const clearMigrations = async () => {
jest.setTimeout(10000)
afterAll(() => {
tk.reset()
})
describe("migrations", () => {
const config = new TestConfig()