# test.govlab/docs/core/plugins/manifest.scope.plugin.test.ts

> 11 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-govlab-docs-core-plugins-manifest-scope-plugin-test-ts
Source text: https://banes-lab.com/source/testing/test.govlab/docs/core/plugins/manifest.scope.plugin.test.ts.txt

Listed in [test.govlab/docs/core/plugins](https://banes-lab.com/api/source/testing/test.govlab/docs/core/plugins.md), after [test.govlab/docs/core/plugins/manifest.readme.plugin.test.ts](https://banes-lab.com/source/testing/test.govlab/docs/core/plugins/manifest.readme.plugin.test.ts.md) and before [test.govlab/docs/core/plugins/manifest.surface.plugin.test.ts](https://banes-lab.com/source/testing/test.govlab/docs/core/plugins/manifest.surface.plugin.test.ts.md).

## Contained in

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

## Source

```typescript
import { describe, expect, it } from "vitest";
import { plugin } from "@govlab/docs/core/plugins/manifest.scope.plugin.ts";

describe("the scope manifest plugin", () => {
    it("filters a private module and marks a hidden one", () => {
        expect(plugin.filter?.({ visibility: { private: true } })).toBe(true);
        expect(plugin.filter?.({ visibility: { hidden: true } })).toBe(false);
        const entry = { category: null, value: "x" };
        plugin.contribute?.({ visibility: { hidden: true } }, entry);
        expect(entry).toHaveProperty("hidden", true);
    });
});
```
