Move the tests from scripts/ to tests/ by feature
Unit tests go to tests/unit/<area>/, browser smoke tests to tests/smoke/<area>/, and tests against a running desktop app to tests/native/. Files named after dates, work passes, or Kanban cards get feature names, for example editorOctober12 -> editor/footnotes. scripts/ keeps the build, release, and package tools. Plugin repositories import scripts/packagePlugin.mjs, and the Terminal smoke test imports scripts/pluginMocks.mjs, which now re-exports the harness copy. The unit tests get their own type check (tests/tsconfig.json) with Node types. pnpm check runs it after the app check. Add @types/node and fix the three test mocks that it reported.
This commit is contained in:
@@ -107,7 +107,7 @@ Rules from the owner:
|
||||
- A selection gets one outline around each group of adjacent selected items, with no borders on shared internal edges.
|
||||
- Colors follow the `ui-functional-color` skill and `docs/ui-color.md`: vivid by default, informative text opaque.
|
||||
- Before Review, check both themes, narrow windows, long lists, keyboard focus, and viewport edges.
|
||||
For menu work, run `pnpm check:menus` and `scripts/menuConsistency.smoke.mjs`.
|
||||
For menu work, run `pnpm check:menus` and `tests/smoke/menus/consistency.smoke.mjs`.
|
||||
Keep screenshots of the exact control that the card names.
|
||||
- Record a rule change, a recurring problem, or an exception in `docs/design-decisions.md`. An isolated fix needs no entry.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user