From 1ead06f6ff16467704051eb4412f39868e37e59a Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 5 Mar 2026 10:38:07 -0600 Subject: [PATCH] Add test note --- CLAUDE.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 5a57bb1b41..f2ace9e25c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -160,7 +160,7 @@ related code together and gives us a better visual cue that there are probably other files contained within this "macro" feature, whereas `Component.tsx` on its own looks more like a single component file. -### Documentation Within Features +### Documentation and Tests Within Features For larger features or components, it's helpful to include a README.md file within the directory that explains the purpose of the feature, how it works, and @@ -170,6 +170,12 @@ the `README.md` can provide documentation for the whole feature. This is optional, but can be a nice way to keep documentation close to the code it describes. +Similarly, if there are tests that are specific to a component or feature, it +can be helpful to include them in the same directory, either as +`Component.test.tsx` or in a `__tests__/` subdirectory. This keeps everything +related to the component or feature in one place and makes it easier to find and +maintain tests. + ## Styling System (ALF) ALF is the custom design system. It uses Tailwind-inspired naming with underscores instead of hyphens.