For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/config/test/setup-files.md.
close
  • 简体中文
  • setupFiles

    • 类型: string[]
    • 默认值: []

    一组 setup 文件列表,通常用于配置或设置测试环境,它们将在每个测试文件执行前运行。

    rstest.config.ts
    import { defineConfig } from '@rstest/core';
    
    export default defineConfig({
      setupFiles: ['./scripts/rstest.setup.ts'],
    });