For AI agents: the complete documentation index is available at https://rstest.rs/llms.txt, the full documentation bundle is available at https://rstest.rs/llms-full.txt, and this page is available as Markdown at https://rstest.rs/config/build/dev.md.
close
  • English
  • dev

    Options for local development.

    dev.writeToDisk dev.writeToDiskdev.writeToDisk

    • Type: boolean | ((filename: string) => boolean)
    • Default: false
    • CLI: --dev.writeToDisk

    Controls whether temporary test build files are written to disk. By default, Rstest keeps build outputs in memory; enable this when debugging generated test bundles.

    With dev.writeToDisk: true, Node.js workers read the build output directly from disk, which reduces main-process memory usage for large test bundles.

    rstest.config.ts
    import { defineConfig } from '@rstest/core';
    
    export default defineConfig({
      dev: {
        writeToDisk: true,
      },
    });