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:
@@ -35,5 +35,5 @@ The Git ZIP requires the matching host build. Earlier hosts show an update messa
|
||||
Screenshots and check logs are in `.audit/`. Git screenshots are in `../RuneStone_Git/output/`.
|
||||
The native Windows check confirmed real WebView2 commands in the shared menu. Native Undo restored Writer text in an isolated test profile.
|
||||
That profile supplied no spelling suggestions. Correction and undo with a spelling suggestion still need desktop acceptance.
|
||||
The reusable check is `scripts/spellingNative.smoke.mjs`. Set `REQUIRE_NATIVE_SUGGESTIONS=1` to require an actual suggestion.
|
||||
The reusable check is `tests/native/spelling.native.mjs`. Set `REQUIRE_NATIVE_SUGGESTIONS=1` to require an actual suggestion.
|
||||
Cards move to Review after their checks pass. Done remains reserved for user acceptance.
|
||||
|
||||
Reference in New Issue
Block a user