diff --git a/CLAUDE.md b/CLAUDE.md index 4c4112753..77b564130 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -42,6 +42,14 @@ Source files use placeholders that get replaced per-provider: - `{{config_file}}` - Config file name (CLAUDE.md, .cursorrules, etc.) - `{{ask_instruction}}` - How to ask user questions +## Testing + +```bash +bun run test # Run all tests +``` + +Unit tests (build, detector logic) run via `bun test`. Fixture tests (jsdom-based HTML detection) run via `node --test` because bun is too slow with jsdom. The `test` script handles this split automatically. + ## CLI Impeccable includes a CLI for running anti-pattern detection outside of AI harnesses: diff --git a/tests/fixtures/antipatterns/quality-should-pass.html b/tests/fixtures/antipatterns/quality-should-pass.html index 5e97b9ed9..aae801d66 100644 --- a/tests/fixtures/antipatterns/quality-should-pass.html +++ b/tests/fixtures/antipatterns/quality-should-pass.html @@ -121,6 +121,12 @@
This paragraph has a max-width of 65ch, keeping the line length comfortable for reading. The eye can easily track from the end of one line to the beginning of the next.
+This is a short sentence in a wide container.
+Just a few words here.
+