From 8bcfadc877f69ff19152feacc6e2a0504a3c9a09 Mon Sep 17 00:00:00 2001 From: kikootwo Date: Sat, 16 May 2026 10:46:06 -0400 Subject: [PATCH] Enforce build+tests; add indexer option in test Update CLAUDE.md to require both `docker compose build readmeabook` and a full `npm run test` (0 failures) before reporting work as ready to be tested. Also modify tests/components/admin-settings-indexers.test.tsx to include `indexerOptions.skipUnreleased: true` in the test fixture so the test reflects the skipUnreleased option. --- CLAUDE.md | 6 +++++- tests/components/admin-settings-indexers.test.tsx | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 803edd2..b726a55 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -2,7 +2,11 @@ **Critical:** This document defines AI-optimized documentation standards and development workflow. **NEVER PERFORM COMMITS ON THE REPOSITORY.** -**ALWAYS DO:** When you feel work is complete, use the docker compose build readmebook to confirm you have no errors. If the build succeeds, then you can tell me it is ready to be tested. +**ALWAYS DO:** When you feel work is complete, you MUST verify BOTH of the following pass before reporting the work as ready to test: +1. `docker compose build readmeabook` — must succeed with no errors. +2. `npm run test` — the FULL test suite must pass (0 failures). Running a subset is not sufficient; the entire suite must be green. + +Only after BOTH succeed may you tell the user the work is ready to be tested. **NEVER implement without approval.** When asked to assess, investigate, or fix a problem: 1. **Research & analyze** — Read code, trace the issue, identify root cause. diff --git a/tests/components/admin-settings-indexers.test.tsx b/tests/components/admin-settings-indexers.test.tsx index 98b89e1..98004c4 100644 --- a/tests/components/admin-settings-indexers.test.tsx +++ b/tests/components/admin-settings-indexers.test.tsx @@ -96,6 +96,9 @@ describe('IndexersTab - Auto-load Indexers on Tab Activation', () => { url: 'http://prowlarr.local:9696', apiKey: 'test-api-key', }, + indexerOptions: { + skipUnreleased: true, + }, downloadClient: { type: 'qbittorrent', url: 'http://localhost:8080',