# test.govlab/docs/core/analyzers/drift.analyzer.test.ts

> 15 lines of code and 0 definitions.

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

Listed in [test.govlab/docs/core/analyzers](https://banes-lab.com/api/source/testing/test.govlab/docs/core/analyzers.md), after [test.govlab/docs/core/analyzers/document.analyzer.test.ts](https://banes-lab.com/source/testing/test.govlab/docs/core/analyzers/document.analyzer.test.ts.md) and before [test.govlab/docs/core/analyzers/graph.analyzer.test.ts](https://banes-lab.com/source/testing/test.govlab/docs/core/analyzers/graph.analyzer.test.ts.md).

## Contained in

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

## Source

```typescript
import { describe, expect, it } from "vitest";
import { absolutePath } from "@ssot/paths";
import { join } from "node:path";
import { symbolDriftIn } from "@govlab/docs/core/analyzers/drift.analyzer.ts";

const PARSERS = join(absolutePath("govlab.docs"), "core", "parsers");

describe("symbolDriftIn", () => {
    it("passes a reference whose symbol the target file exports", () => {
        expect(symbolDriftIn("See `./export.parser.ts#exportedNames` for details.", PARSERS, PARSERS)).toStrictEqual(
            [],
        );
    });

    it("reports a reference whose symbol the target file does not export", () => {
        expect(symbolDriftIn("See `./export.parser.ts#ghostSymbol` for details.", PARSERS, PARSERS)).toHaveLength(1);
    });
});
```
