# test.govlab/quality/core/loaders/config.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-quality-core-loaders-config-loader-test-ts
Source text: https://banes-lab.com/source/testing/test.govlab/quality/core/loaders/config.loader.test.ts.txt

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

## Contained in

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

## Source

```typescript
import { expect, test } from "vitest";
import { loadGovlabConfig, resolveConfigInDir } from "@govlab/quality/core/loaders/config.loader.ts";
import { ROOT } from "@ssot/paths";
import { tmpdir } from "node:os";

test("the workspace config resolves and loads, and a folder without one resolves to null", async () => {
    expect(resolveConfigInDir(tmpdir())).toBeNull();
    const config = await loadGovlabConfig(ROOT);
    expect(config.qualityMaster?.ecosystems).toContain("typescript");
});
```
