From cd69f0ea11c9cceedd5c56be9db48eeec1e7e0ac Mon Sep 17 00:00:00 2001 From: bchanot Date: Sun, 25 Oct 2026 13:37:22 +0100 Subject: [PATCH] test(tests): R5.7 census refuses #[ignore] ledger targets --- apps/app/tests/unit/r5.census.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/app/tests/unit/r5.census.test.ts b/apps/app/tests/unit/r5.census.test.ts index 76252c88..00a0a6e6 100644 --- a/apps/app/tests/unit/r5.census.test.ts +++ b/apps/app/tests/unit/r5.census.test.ts @@ -295,9 +295,10 @@ describe('the disposition of the deleted files and tests', () => { if (cargo) { const [, binary, test] = cargo const files = cargoTargetFile(binary!) - // A `#[test]` function of that name, not any `fn` (attributes and doc lines between). + // A `#[test]` function of that name, not any `fn` (attributes and doc lines between), + // and never an `#[ignore]` one: `cargo test` would skip it and the row would be passive. const testFn = new RegExp( - `#\\[test\\]\\s*(?:(?:#\\[[^\\]]*\\]|///[^\\n]*)\\s*)*fn ${test}\\(`, + `#\\[test\\]\\s*(?:(?:#\\[(?!ignore)[^\\]]*\\]|///[^\\n]*)\\s*)*fn ${test}\\(`, ) const defined = files.some( (path) => exists(path) && testFn.test(read(path)),