@exile-watch/unit-testing-config

Shared Vitest configuration for exile.watch projects

exile.watch logo

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

About Vitest & Testing Library

Vitest is a Vite-native testing framework.

Testing Library contains a simple and complete testing utilities that encourage good testing practices

Usage

  1. Install the package as a devDependency:

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

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

// {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"
    }
  }
}

Last updated

Was this helpful?