test: establish frontend gate taxonomy

This commit is contained in:
donghyeon-ka
2026-07-25 20:41:44 +09:00
parent 0a0b7263b3
commit 946cf407b0
11 changed files with 1384 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
import { describe, expect, it, vi } from "vitest";
import { systemClock } from "../../src/application/ports/clock-port.js";
describe("systemClock", () => {
it("resolves after the requested duration", async () => {
vi.useFakeTimers();
const sleeper = systemClock.sleep(250);
await vi.advanceTimersByTimeAsync(250);
await expect(sleeper).resolves.toBeUndefined();
vi.useRealTimers();
});
});