Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:29:30 +08:00
commit 40d73f6839
33 changed files with 8109 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
// tests/unit/lib/utils/FEATURE.test.ts
import { describe, it, expect } from "vitest";
import { functionToTest } from "~/lib/utils/FEATURE";
describe("functionToTest", () => {
it("handles valid input correctly", () => {
const result = functionToTest("valid input");
expect(result).toBe("expected output");
});
it("handles edge cases", () => {
expect(functionToTest("")).toBe("");
expect(functionToTest(null)).toBeNull();
});
it("throws error for invalid input", () => {
expect(() => functionToTest("invalid")).toThrow("Error message");
});
});