include

  • Type: string[]
  • Default: ['**/*.{test,spec}.?(c|m)[jt]s?(x)']
  • CLI: --include '**/*.test.ts' --include '**/*.spec.ts'

A list of glob patterns that match your test files.

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

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