Rstest provides a debug mode to troubleshoot problems, you can add the DEBUG=rstest
environment variable when building to enable Rstest's debug mode.
In debug mode, Rstest will write test outputs to disk, and write the Rstest config, Rsbuild config and Rspack config to the dist directory, which is convenient for developers to view and debug.
In debug mode, Rstest will automatically generate dist/.rsbuild/rstest.config.mjs
file, which contains the final generated Rstest config. In this file, you can know the final result of the Rstest config you passed in after being processed by the framework and Rstest.
The content of the file is as follows:
For a complete introduction to Rstest config, please see the Configure Rstest chapter.