Skip to content

CL-5847: Co-locate pure unit tests next to source - #31

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-5847-co-locate-unit-tests-next-to-source-keep-integration-tests
Aug 9, 2026
Merged

CL-5847: Co-locate pure unit tests next to source#31
TheGreatAxios merged 2 commits into
mainfrom
cl-5847-co-locate-unit-tests-next-to-source-keep-integration-tests

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

  • Co-locate pure unit tests for channel-path and canvas-column-state next to their source under apps/web/src/.
  • apps/web bun test now covers both ./src and ./test (181 pass locally).
  • Document the convention: unit tests beside source; integration/composition under test/.

Broader package-by-package migration stays on CL-5847.

Test plan

  • cd apps/web && bun test — 181 pass
  • CI green

Closes part of CL-5847 (seed only; remaining pure units migrate when touched).

Move channel-path and canvas-column-state tests beside their modules,
run bun test over both src/ and test/, and document the unit vs
integration placement rule in AGENTS.md and apps/web README.
Prettier wants a single-line import from the adjacent module.
@TheGreatAxios
TheGreatAxios merged commit 5e3b4b6 into main Aug 9, 2026
2 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-5847-co-locate-unit-tests-next-to-source-keep-integration-tests branch August 9, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant