# @exile-watch/unit-testing-config

<figure><img src="/files/phOqyIiKbklQTpQi6Q8A" alt="" width="200"><figcaption><p>exile.watch logo</p></figcaption></figure>

## About [`@exile-watch/unit-testing-config`](https://github.com/exile-watch/splinters/tree/main/packages/unit-testing-config)

This package contains shared Vitest configuration, Vitest and Testing Library dependencies.

## About Vitest & Testing Library

[Vitest](https://vitest.dev/) is a [Vite](https://vitejs.dev/)-native testing framework.

[Testing Library](https://testing-library.com/) contains a simple and complete testing utilities that encourage good testing practices

## Usage

1. Install the package as a `devDependency`:

```bash
npm i -D @exile-watch/unit-testing-config
```

***

2. Add/update `scripts` properties in repo's root `package.json`:

```jsonp
// {root}/package.json
{
  "scripts": {
    "lint": ...,        // "exit 0" if linting is not set
    "lint:apply": ...,  // "exit 0" if linting is not set
    "format": ...       // "exit 0" if formatting is not set
    "typecheck": ...    // "exit 0" if typecheck is not set
  },
  "config": {
    "commitizen": {
      "path": "./node_modules/cz-conventional-changelog"
    }
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.exile.watch/projects/splinters/exile-watch-unit-testing-config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
