Files

6 lines
148 B
TypeScript

import { test } from "vitest";
test("error serialization with toJSON", () => {
throw Object.assign(new Error("hello"), { date: new Date(0) })
})