close
  • English
  • plugins pluginsplugins

    plugins is used to register Rsbuild plugins.

    Rstest and Rsbuild share the same plugin system, so you can use Rsbuild plugins in Rstest.

    Using plugins

    You can register Rsbuild plugins in rstest.config.* using the plugins option, see Rsbuild - plugins.

    rstest.config.ts
    import { defineConfig } from '@rstest/core';
    import { pluginReact } from '@rsbuild/plugin-react';
    
    export default defineConfig({
      plugins: [pluginReact()],
    });

    Discover plugins

    Check out the Rsbuild plugin list to discover available plugins. These plugins can also be used with Rstest.