mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 02:33:54 +03:00
2673425aeb
`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.
16 lines
346 B
TypeScript
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,
|
|
},
|
|
});
|