string[] | { patterns: string[]; override?: boolean }['**/node_modules/**', '**/dist/**', '**/.{idea,git,cache,output,temp}/**']--exclude "**/node_modules/**"A list of glob patterns that should be excluded from your test files.
Exclude the test files under node_modules:
npx rstest --exclude "**/node_modules/**"By default, Rstest will merge your custom config with the default config. If you want to override the default exclude configuration, you can set override to true.
import { defineConfig } from '@rstest/core';
export default defineConfig({
include: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
exclude: {
patterns: ['**/node_modules/**'],
override: true,
},
});