Simpl-Resultat/src/test
le king fu 1d2cb32c29 test: share texts and move the last local find copies onto src/test/elementTree.ts (#495)
Add `texts` to src/test/elementTree.ts: every string of the tree, depth
first, through arrays at any depth and fragments, each string as it is; a
number is not a string and is left out, never rendered (Max's decision of
2026-10-24). Eight cases of elementTree.test.ts prove each point.

The fifteen test files that kept a copy of `find` import the shared one,
and the seven of them that kept a copy of `texts` import that too. The
copies had the same traversal: same tests (137), same names, all green.
The eleven calls by type become predicates (`(el) => el.type === X`), the
Fragment search of TransactionTable.wiring.test.ts included. Only the
imports tsc reports as unused go; `expand` keeps its own in
OnboardingChecklist.test.tsx and ImportEmptyState.test.tsx.

The `const texts` of CategoryDetailPanel.delete.test.ts and
AccountsPage.delete.test.ts, of another meaning, stay as they are.

Refs #495

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 20:12:04 -04:00
..
elementTree.test.ts test: share texts and move the last local find copies onto src/test/elementTree.ts (#495) 2026-10-26 20:12:04 -04:00
elementTree.ts test: share texts and move the last local find copies onto src/test/elementTree.ts (#495) 2026-10-26 20:12:04 -04:00
hookHarness.test.ts test(harness): follow-ups of the review of PR #434 2026-10-13 19:51:20 -04:00
hookHarness.ts test(harness): follow-ups of the review of PR #434 2026-10-13 19:51:20 -04:00
i18nMock.test.ts test(i18n): add the shared marked fake t and use it in useLicenseMachines 2026-10-12 19:49:44 -04:00
i18nMock.ts test(i18n): add the shared marked fake t and use it in useLicenseMachines 2026-10-12 19:49:44 -04:00