Skip to content
Merged
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
4 changes: 3 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ behind human approval.
audience.
- Worktrees live in `.worktrees/<branch>`; branch = `cl-<issue#>-<slug>`.
- Tests are meaningful red/green tests only — no coverage theater. Merged
line coverage floor: 80%.
line coverage floor: 80%. Unit tests for pure modules sit next to the
source they cover (`src/**/*.test.ts`); multi-module / DOM / composition
suites stay under a package `test/` tree (or top-level e2e).
- Deployment is explicit via Pulumi (Railway); CI runs tests only — nothing
auto-deploys on main.

Expand Down
7 changes: 7 additions & 0 deletions apps/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ Approvals are not a page: pending permission requests land as actionable
cards in the contextual panel's Notifications band (and, when a channel is
open, inline in that channel). The `/approvals` route is gone.

## Tests

- **Unit tests** for pure modules (path helpers, reducers, parsers) sit next
to the source file under `src/` as `*.test.ts`.
- **Integration / composition / shell probes** stay under `test/`.
- `bun test` (via the package script) runs both `./src` and `./test`.

## Library

`/library` (`src/pages/library-page.tsx`) is the artifact gallery: search,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"typecheck": "tsc --noEmit",
"build": "vite build",
"watch": "vite build --watch",
"test": "bun test ./test"
"test": "bun test ./src ./test"
},
"dependencies": {
"@corbits/artifact-ui": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { describe, expect, test } from "bun:test";

import {
channelIdFromPath,
channelPath,
isChannelPath,
} from "../src/channel-path";
import { channelIdFromPath, channelPath, isChannelPath } from "./channel-path";

describe("channelPath helpers", () => {
test("builds canonical /c paths", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
openChannelInCanvas,
resolveCanvasVisibility,
toggleCanvasColumn,
} from "../src/shell/canvas-column-state";
} from "./canvas-column-state";

describe("canvas column state", () => {
test("starts closed with no channel", () => {
Expand Down
Loading