> For the complete documentation index, see [llms.txt](https://docs.exile.watch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exile.watch/projects/splinters/exile-watch-unit-testing-config.md).

# @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"
    }
  }
}
```
