# test.govlab/quality/core/predicates/coverage.predicate.test.ts

> 10 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-govlab-quality-core-predicates-coverage-predicate-test-ts
Source text: https://banes-lab.com/source/testing/test.govlab/quality/core/predicates/coverage.predicate.test.ts.txt

Listed in [test.govlab/quality/core/predicates](https://banes-lab.com/api/source/testing/test.govlab/quality/core/predicates.md), after [test.govlab/quality/core/predicates/context.fragment.predicate.test.ts](https://banes-lab.com/source/testing/test.govlab/quality/core/predicates/context.fragment.predicate.test.ts.md) and before [test.govlab/quality/core/predicates/css.predicate.test.ts](https://banes-lab.com/source/testing/test.govlab/quality/core/predicates/css.predicate.test.ts.md).

## Contained in

- [test.govlab/quality/core/predicates](https://banes-lab.com/anatomy/testing/folder-testing-test-govlab-quality-core-predicates.md)

## Source

```typescript
import { expect, test } from "vitest";
import { MASTER_EXCLUDE_MARKERS } from "@ssot/govlab/shared/generated/exclusions.generated.ts";
import { isSkippable } from "@govlab/quality/core/predicates/coverage.predicate.ts";

test("isSkippable skips declarations, tests and every path the master exclusion names", () => {
    expect(isSkippable("a/types.d.ts", MASTER_EXCLUDE_MARKERS)).toBe(true);
    expect(isSkippable("a/b.test.ts", MASTER_EXCLUDE_MARKERS)).toBe(true);
    expect(isSkippable("a/node_modules/b.ts", MASTER_EXCLUDE_MARKERS)).toBe(true);
    expect(isSkippable("a/core/b.ts", MASTER_EXCLUDE_MARKERS)).toBe(false);
    expect(isSkippable("a/node_modules/b.ts", [])).toBe(false);
});
```
