You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`assets/test/lib/`| Unit tests for `assets/lib/` helpers |
89
90
|`assets/components/`| Zag `Component` subclasses; colocated `*.test.ts` per module (helpers + smoke); all modules in `components-contract.test.ts` and `components-smoke.test.ts`|
90
91
|`assets/hooks/`| LiveView hooks; hook-specific logic in `hooks/<name>.ts` + `hooks/<name>.test.ts`; wiring in `hooks-wiring.test.ts`|
91
92
|`priv/design/corex/`| Corex Design tokens and component CSS (source of truth in the package) |
@@ -120,12 +121,12 @@ We use [Conventional Commits](https://www.conventionalcommits.org/) style when i
120
121
121
122
| Path | Expectation |
122
123
| ---- | ----------- |
123
-
|`assets/lib/*.ts`|Colocated `assets/lib/<name>.test.ts` for every module except `core.ts` (abstract base) |
124
+
|`assets/lib/*.ts`|`assets/test/lib/<name>.test.ts` for every module except `core.ts` (abstract base) |
124
125
|`assets/components/*.ts`| Tests under `assets/test/component/` (per-module + `components-contract.test.ts` + `components-smoke.test.ts`) |
|`assets/test/helpers/`| Shared DOM fixtures (`dom.ts`, `component-fixture.ts`, `component-smoke.ts`, `mock-live-socket.ts`, `expect-hook.ts`) |
127
128
128
-
New shared helper → `assets/lib/<name>.test.ts`. New component or hook tests → `assets/test/component/<name>.test.ts` or `assets/test/hooks/<name>.test.ts`. Export small pure functions from hooks when logic is not otherwise testable.
129
+
New shared helper → `assets/test/lib/<name>.test.ts`. New component or hook tests → `assets/test/component/<name>.test.ts` or `assets/test/hooks/<name>.test.ts`. Export small pure functions from hooks when logic is not otherwise testable.
0 commit comments