@bemedev/vitest-exclude
v0.1.1
Published
Exclude files for test and coverage, more dev-friendly
Maintainers
Readme
A simple lib to Exclude files for test and coverage
More dev-friendly
Usage
To use this library, follow the steps below:
- Install the package:
pnpm install @bemedev/vitest-exclude- Import the necessary functions in your test files:
import { exclude } from '@bemedev/vitest-exclude';- Configure your tests:
import { exclude } from '@bemedev/vitest-exclude';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [
exclude({
// Exclude these files from coverage because they are not relevant
ignoreCoverageFiles: ['**/index.ts', '**/types.ts'],
ignoreTestFiles: ['./path/to/your/test/file.ts'],
}),
],
});- Run your tests:
pnpm run testThis will exclude the specified files from test and coverage.
