Search
string[]
['**/node_modules/**', '**/dist/**', '**/.{idea,git,cache,output,temp}/**']
匹配 glob 规则的文件将不会被视为测试文件。
排除 node_modules 下的测试文件:
node_modules
import { defineConfig } from '@rstest/core'; export default defineConfig({ include: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'], exclude: ['**/node_modules/**'], });