es-toolkit/vitest.config.mts
Wojciech Maj 2673425aeb
chore: fix test command (#609)
`vitest run` implied non-development environment, disabling features like watching. So, now you can e.g.:

```
yarn test cloneDeep --watch
```

and work on your utility in peace.

At the same time, added `watch: false` to `vitest.config.mts` ensures the expected behavior of all test related commands won't change.
2024-09-28 21:40:09 +09:00

16 lines
346 B
TypeScript

import { defineConfig } from 'vitest/config';
import packageJson from './package.json';
export default defineConfig({
test: {
name: packageJson.name,
exclude: ['./benchmarks/**/*'],
coverage: {
provider: 'istanbul',
include: ['src/**/*'],
exclude: ['src/compat/_internal/**/*'],
},
watch: false,
},
});