prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey

Merge pull request #4 from tylersayshi/bench-enable

fix bench

authored by

tyler and committed by
GitHub
6a799dd0 f1d4e2fc

+1 -7
+1 -1
package.json
··· 24 24 "format": "prettier .", 25 25 "lint": "eslint . --max-warnings 0", 26 26 "test": "vitest run", 27 - "test:bench": "vitest bench", 27 + "test:bench": "node src/tests/infer.bench.ts", 28 28 "test:update-snapshots": "vitest run -u", 29 29 "tsc": "tsc" 30 30 },
-6
src/tests/infer.bench.ts
··· 1 - import { test } from "vitest"; 2 1 import { bench } from "@ark/attest"; 3 2 import type { InferNS } from "../infer.ts"; 4 3 import { lx } from "../lib.ts"; 5 - 6 - // Dummy test to satisfy Vitest - actual benchmarks run during module load 7 - test("type benchmarks", () => { 8 - // Benchmarks run automatically via bench() calls below 9 - }); 10 4 11 5 bench("InferNS with simple object", () => { 12 6 const schema = lx.namespace("test.simple", {