# test.build/core/predicates/graph.predicate.test.ts

> 9 lines of code and 0 definitions.

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

Listed in [test.build/core/predicates](https://banes-lab.com/api/source/testing/test.build/core/predicates.md), after [test.build/core/predicates/exclusion.predicate.test.ts](https://banes-lab.com/source/testing/test.build/core/predicates/exclusion.predicate.test.ts.md) and before [test.build/core/predicates/route.predicate.test.ts](https://banes-lab.com/source/testing/test.build/core/predicates/route.predicate.test.ts.md).

## Contained in

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

## Source

```typescript
import { describe, expect, it } from "vitest";
import { isChunkFile } from "@banes-lab/build-scripts/core/predicates/graph.predicate.ts";

describe("isChunkFile", () => {
    it("tells a chunk apart from the loader and from another family's chunk", () => {
        expect(isChunkFile("graph.chapter.generated.ts")).toBe(true);
        expect(isChunkFile("graph.generated.ts")).toBe(false);
        expect(isChunkFile("reference.chapter.generated.ts")).toBe(false);
    });
});
```
