# test.govlab/patterns/core/converters/package.fixture.ts

> 10 lines of code and 1 definition.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-govlab-patterns-core-converters-package-fixture-ts
Source text: https://banes-lab.com/source/testing/test.govlab/patterns/core/converters/package.fixture.ts.txt

Listed in [test.govlab/patterns/core/converters](https://banes-lab.com/api/source/testing/test.govlab/patterns/core/converters.md), after [test.govlab/patterns/core/converters/math.converter.test.ts](https://banes-lab.com/source/testing/test.govlab/patterns/core/converters/math.converter.test.ts.md) and before [test.govlab/patterns/core/converters/page.converter.test.ts](https://banes-lab.com/source/testing/test.govlab/patterns/core/converters/page.converter.test.ts.md).

## Definitions

- `entry` (lexical_declaration, line 4, exported)

## Contained in

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

## Source

```typescript
import type { CodeSymbol } from "@govlab/patterns/types/code.types.ts";
import type { FileEntry } from "@govlab/patterns/types/package.types.ts";

export const entry = function entry(rel: string, nodes: number, symbols: CodeSymbol[] = []): FileEntry {
    return {
        records: [{ file: rel, nodeType: "identifier", text: "x" }],
        rel,
        symbols,
        walk: Array.from({ length: nodes }, () => ({ depth: 0, file: rel, label: "call_expression", role: "node" })),
    };
};
```
