# test.rules/shared/loaders/document.loader.test.ts

> 12 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-rules-shared-loaders-document-loader-test-ts
Source text: https://banes-lab.com/source/testing/test.rules/shared/loaders/document.loader.test.ts.txt

Listed in [test.rules/shared/loaders](https://banes-lab.com/api/source/testing/test.rules/shared/loaders.md), after [test.rules/shared/loaders/barrel.loader.test.ts](https://banes-lab.com/source/testing/test.rules/shared/loaders/barrel.loader.test.ts.md) and before [test.rules/shared/loaders/graph.loader.test.ts](https://banes-lab.com/source/testing/test.rules/shared/loaders/graph.loader.test.ts.md).

## Contained in

- [test.rules/shared/loaders](https://banes-lab.com/anatomy/testing/folder-testing-test-rules-shared-loaders.md)

## Source

```typescript
import { describe, expect, it } from "vitest";
import { governedDocumentTexts, governedManifests } from "@ssot/govlab/shared/loaders/document.loader.ts";
import { relativePath } from "@ssot/paths";

describe("governedManifests and governedDocumentTexts", () => {
    it("list every member manifest and read the behavior document and the manifests line by line", () => {
        const manifests = governedManifests();
        expect(manifests.length).toBeGreaterThan(0);
        expect(manifests.every((file) => file.endsWith("_manifest.json"))).toBe(true);
        const texts = governedDocumentTexts();
        expect(texts.some((text) => text.at.startsWith(`${relativePath("claudePolicy")}:`))).toBe(true);
    });
});
```
