# test.govlab/docs/core/loaders/code.loader.test.ts

> 9 lines of code and 0 definitions.

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

Listed in [test.govlab/docs/core/loaders](https://banes-lab.com/api/source/testing/test.govlab/docs/core/loaders.md), after [test.govlab/docs/core/loaders/base.loader.test.ts](https://banes-lab.com/source/testing/test.govlab/docs/core/loaders/base.loader.test.ts.md) and before [test.govlab/docs/core/loaders/diagram.loader.test.ts](https://banes-lab.com/source/testing/test.govlab/docs/core/loaders/diagram.loader.test.ts.md).

## Contained in

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

## Source

```typescript
import { describe, expect, it } from "vitest";
import { loadAnalyzers } from "@govlab/docs/core/loaders/code.loader.ts";

describe("loadAnalyzers", () => {
    it("discovers an analyzer per ecosystem from the plugins folder, sorted by ecosystem", async () => {
        const ecosystems = (await loadAnalyzers()).map((analyzer) => analyzer.ecosystem);
        expect(ecosystems).toContain("typescript");
        expect(ecosystems).toStrictEqual(ecosystems.toSorted((left, right) => left.localeCompare(right)));
    });
});
```
