@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 03:37 UTC

main
ts 31 lines 1.08 KB
Raw
1 import { describe, expect, it } from "vite-plus/test";
2
3 import { classifyChangedFile } from "./changedFileKind.ts";
4
5 describe("classifyChangedFile", () => {
6 it.each([
7 ["src/contest.py", "code"],
8 ["test/fixtures/pr.json", "mocks"],
9 ["pnpm-lock.yaml", "generated"],
10 ["convex/_generated/api.d.ts", "generated"],
11 ["src/agent.eval.ts", "tests"],
12 ["evals/title-generation.ts", "tests"],
13 ["src/Button.stories.tsx", "tests"],
14 ["src/Button.stories.ts", "tests"],
15 ["src/Button.stories.js", "tests"],
16 ["src/Button.stories.jsx", "tests"],
17 ["src/Button.stories.mjs", "tests"],
18 ["src/Button.stories.svelte", "tests"],
19 ["src/Button.stories.mdx", "tests"],
20 ["src\\Button.STORIES.TSX", "tests"],
21 ["src/Button.stories.generated.ts", "generated"],
22 ["__mocks__/Button.stories.tsx", "mocks"],
23 ["src/stories.ts", "code"],
24 ["src/stories/Button.tsx", "code"],
25 [".storybook/main.ts", "code"],
26 ["README.md", "docs"],
27 ["tests/README.md", "tests"],
28 ] as const)("%s is %s", (path, kind) => {
29 expect(classifyChangedFile(path)).toBe(kind);
30 });
31 });