include

  • 类型: string[]
  • 默认值: ['**/*.{test,spec}.?(c|m)[jt]s?(x)']
  • CLI: --include '**/*.test.ts' --include '**/*.spec.ts'

匹配 glob 规则的文件将被视为测试文件。

CLI
rstest.config.ts
import { defineConfig } from '@rstest/core';

export default defineConfig({
  include: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
});