## CLI
```bash
pnpm exec vitest # watch all files
pnpm exec vitest watch # same as above
pnpm exec vitest run # only run tests once
pnpm exec vitest run tests # only run tests in tests directory
```
## Configuration
Add the following to your "scripts" sections in `tsconfig.json`:
```json
"test": "vitest run",
"test:watch": "vitest watch",
```
Now you can turn on test watching simply by `[[p]npm|yarn] test`