# test.govlab/context/core/selectors/lexicon.fixture.ts

> 34 lines of code and 12 definitions.

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

Listed in [test.govlab/context/core/selectors](https://banes-lab.com/api/source/testing/test.govlab/context/core/selectors.md), after [test.govlab/context/core/selectors/grammar.selector.test.ts](https://banes-lab.com/source/testing/test.govlab/context/core/selectors/grammar.selector.test.ts.md) and before [test.govlab/context/core/selectors/lexicon.selector.test.ts](https://banes-lab.com/source/testing/test.govlab/context/core/selectors/lexicon.selector.test.ts.md).

## Definitions

- `STORES` (lexical_declaration, line 3, exported)
- `STORE_NAME` (lexical_declaration, line 4, exported)
- `STORE_ID` (lexical_declaration, line 5, exported)
- `CART_PATH` (lexical_declaration, line 6, exported)
- `MANAGER_PATH` (lexical_declaration, line 7, exported)
- `PATH_LANG` (lexical_declaration, line 8, exported)
- `CODE_MEDIUM` (lexical_declaration, line 9, exported)
- `tag` (lexical_declaration, line 11, exported)
- `marker` (lexical_declaration, line 18, exported)
- `rename` (lexical_declaration, line 26, exported)
- `placedCategory` (lexical_declaration, line 34, exported)
- `CART` (lexical_declaration, line 40, exported)

## Contained in

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

## Source

```typescript
import type { TermCategory, TermRecord } from "@govlab/context/types/lexicon.types.ts";

export const STORES = "stores";
export const STORE_NAME = "Store Tag";
export const STORE_ID = "store-tag";
export const CART_PATH = "stores/cart.store.ts";
export const MANAGER_PATH = "managers/cart.manager.ts";
export const PATH_LANG = "path";
export const CODE_MEDIUM = "code";

export const tag = (name: string, folder: string, extra: Partial<TermRecord> = {}): TermRecord => ({
    definition: `A formal definition of the tag for a file that is planted for the test, filed in a ${folder} folder.`,
    kind: "artifact",
    name,
    ...extra,
});

export const marker = (example: string): TermRecord => ({
    definition:
        "A formal definition of the compound marker for a planted file, which is exempt from the naming grammar and placed in its subject's mirrored concern folder.",
    example,
    kind: "artifact",
    name: "Test Tag",
});

export const rename = (before: string, after: string): TermRecord => ({
    definition: "Tagging a file with a planted refused word.",
    exemplar: { after, before, lang: PATH_LANG, medium: CODE_MEDIUM },
    kind: "anti-pattern",
    name: "Planted Refusal",
    seeAlso: [STORE_ID],
});

export const placedCategory = (records: TermRecord[]): TermCategory => ({
    category: "planted-placed",
    exampleShape: "placed-file",
    records,
});

export const CART = tag(STORE_NAME, STORES, { example: CART_PATH });
```
