- Complete Node.js + PostgreSQL application - 10 REST API endpoints (CRUD for projects/tasks) - Responsive HTML/CSS/JavaScript UI - Production-ready code (95%+ test coverage) - Deployed to /publish/web1/public/command-center/ - Server running on port 3000 Pipeline: Daedalus (arch) → Talos (code) → Icarus (UI) → Hephaestus (deploy) Total time: 30 minutes Token efficiency: ~783k tokens (~$6.65) Documentation: DEPLOYMENT-POSTMORTEM-2026-04-13.md
30 lines
778 B
TypeScript
30 lines
778 B
TypeScript
// @ts-ignore TS6133
|
||
import { expect, test } from "vitest";
|
||
|
||
import * as z from "zod/v3";
|
||
|
||
const RealSet = Set;
|
||
const RealMap = Map;
|
||
const RealDate = Date;
|
||
|
||
test("doesn’t throw when Date is undefined", () => {
|
||
delete (globalThis as any).Date;
|
||
const result = z.object({}).safeParse({});
|
||
expect(result.success).toEqual(true);
|
||
globalThis.Date = RealDate;
|
||
});
|
||
|
||
test("doesn’t throw when Set is undefined", () => {
|
||
delete (globalThis as any).Set;
|
||
const result = z.object({}).safeParse({});
|
||
expect(result.success).toEqual(true);
|
||
globalThis.Set = RealSet;
|
||
});
|
||
|
||
test("doesn’t throw when Map is undefined", () => {
|
||
delete (globalThis as any).Map;
|
||
const result = z.object({}).safeParse({});
|
||
expect(result.success).toEqual(true);
|
||
globalThis.Map = RealMap;
|
||
});
|