@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 25 lines 815 Bytes
Raw
1 import { describe } from "@effect/vitest";
2
3 import { createOxlintRuleHarness } from "../test/utils.ts";
4
5 const rule = createOxlintRuleHarness("t3code/no-ambiguous-detail-navigation", {
6 filename: "apps/mobile/src/features/threads/ThreadFeed.tsx",
7 });
8
9 describe("t3code/no-ambiguous-detail-navigation", () => {
10 rule.valid(
11 "allows selections, explicit pushes, and other routes",
12 `
13 selectDetail({ name: "Thread", params });
14 navigation.dispatch(StackActions.push("PullRequest", params));
15 navigation.navigate("ThreadFiles", params);
16 `,
17 );
18
19 rule.invalid("reports navigating to a thread", `navigation.navigate("Thread", params);`);
20
21 rule.invalid(
22 "reports a navigate action to a pull request",
23 `navigation.dispatch(CommonActions.navigate("PullRequest", params));`,
24 );
25 });