Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tachibana-shin committed Aug 11, 2023
1 parent 3c453f1 commit 0e263da
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/vitest/setup-file.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
// This file will be run before each test file
import "fake-indexeddb/auto"

const { Date } = self
;(self as unknown as never).Date = class extends Date {
constructor(value: string | number | Date) {
if (typeof value === "string") value += " GMT+0"

super(value)
}
}

0 comments on commit 0e263da

Please sign in to comment.