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)),