Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ data/
.idea/

**/.env
**/.ccpa
**/.ccpa

# Worktrees
.worktrees/
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
"typecheck": "tsc --noEmit",
"lint": "biome check src",
"lint:fix": "biome check --write src",
"test": "vitest",
"test:run": "vitest run",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage",
"prepublishOnly": "pnpm run build",
"prepare": "husky"
},
Expand Down Expand Up @@ -46,9 +50,11 @@
"devDependencies": {
"@biomejs/biome": "^2.3.11",
"@types/node": "^25.0.8",
"@vitest/ui": "^4.0.18",
"husky": "^9.1.7",
"tsx": "^4.21.0",
"typescript": "^5.9.3"
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
"engines": {
"node": ">=18"
Expand Down
661 changes: 661 additions & 0 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions src/__tests__/basic.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { describe, expect, it } from "vitest";

describe("Testing Framework Verification", () => {
it("should run basic test successfully", () => {
expect(2 + 2).toBe(4);
});

it("should handle async operations", async () => {
const result = await Promise.resolve("test");
expect(result).toBe("test");
});

it("should work with Date objects (timestamp validation)", () => {
const timestamp = 1709520000;
const date = new Date(timestamp * 1000);
const isoString = date.toISOString();

expect(isoString).toBe("2024-03-04T02:40:00.000Z");
expect(timestamp).toBe(1709520000);
});
});
Loading