mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
6 lines
148 B
TypeScript
6 lines
148 B
TypeScript
import { test } from "vitest";
|
|
|
|
test("error serialization with toJSON", () => {
|
|
throw Object.assign(new Error("hello"), { date: new Date(0) })
|
|
})
|