chore: SDK 工程骨架(esbuild+vitest)

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-15 11:30:42 +08:00
parent 2a7f08fd14
commit 8e2c91663e
8 changed files with 1246 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import { describe, it, expect } from "vitest";
import { uuid } from "../src/util";
describe("uuid", () => {
it("生成 36 位且不重复", () => {
const a = uuid(), b = uuid();
expect(a).toMatch(/^[0-9a-f-]{36}$/);
expect(a).not.toBe(b);
});
});