close
  • English
  • background

    Rstest

    JavaScript Testing Accelerated by Rspack

    Jest-compatible, ready out of the box.

    GitHubGitHub
    🧪

    Jest-compatible APIs

    Use familiar assertions, snapshots, and mocks, with coverage and lifecycle hooks built in.

    Modern by default

    Test TypeScript, ESM, CJS, and CSS Modules without configuring a separate transform pipeline.

    Fast by design

    Rspack-powered compilation keeps test startup and reruns fast.

    🔁

    Reuse build configuration

    Reuse Rsbuild or Rspack aliases, transforms, and plugins instead of maintaining a separate test setup.

    🏗️

    Build-aligned testing

    Run tests through Rspack's bundling model so transforms and module resolution stay closer to production.

    🌐

    Real browser testing

    Run tests in Chromium, Firefox, or WebKit through Playwright when jsdom isn't enough.