# test.govlab/docs/core/factories/seed.factory.test.ts

> 14 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-govlab-docs-core-factories-seed-factory-test-ts
Source text: https://banes-lab.com/source/testing/test.govlab/docs/core/factories/seed.factory.test.ts.txt

Listed in [test.govlab/docs/core/factories](https://banes-lab.com/api/source/testing/test.govlab/docs/core/factories.md), after [test.govlab/docs/core/factories/registry.factory.test.ts](https://banes-lab.com/source/testing/test.govlab/docs/core/factories/registry.factory.test.ts.md).

## Contained in

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

## Source

```typescript
import { describe, expect, it } from "vitest";
import { absolutePath } from "@ssot/paths";
import { entrySeeds } from "@govlab/docs/core/factories/seed.factory.ts";
import { loadPackage } from "@govlab/docs/core/factories/diagram.factory.ts";

const seedNames = function seedNames(key: string): string[] {
    const dir = absolutePath(key);
    return entrySeeds(dir, loadPackage(dir)).map((seed) => seed.name);
};

describe("entrySeeds", () => {
    it("finds the exported entry symbols of a module's barrels", () => {
        expect(seedNames("govlab.context")).toContain("createGovlabContext");
        expect(seedNames("govlab.utils.contentFingerprint")).toContain("fingerprint");
    });
});
```
