Skip to content

deps(renovate): update rstest to v0.12.6 - #88

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/rstest
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/rstest

Conversation

@renovate

@renovate renovate Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@rstest/adapter-rslib (source) 0.11.6 → 0.12.6 age confidence
@rstest/browser (source) 0.11.6 → 0.12.6 age confidence
@rstest/browser-react (source) 0.11.6 → 0.12.6 age confidence
@rstest/core (source) 0.11.6 → 0.12.6 age confidence

Release Notes

web-infra-dev/rstest (@​rstest/adapter-rslib)

v0.12.6

Compare Source

What's Changed

New Features 🎉
Performance 🚀
Bug Fixes 🐞
Document 📖
Other Changes

New Contributors

Full Changelog: web-infra-dev/rstest@v0.12.5...v0.12.6

v0.12.5

Compare Source

What's Changed
New Features 🎉
Performance 🚀
  • perf(coverage-istanbul): load reporting dependencies on demand by @​9aoy in #​1981
  • perf(coverage-istanbul): compact untested file transforms by @​9aoy in #​1982
  • perf(core): enable automatic prebundling for happy-dom 21 by @​9aoy in #​1988
  • perf(core): replace Babel code frames with a lightweight formatter by @​9aoy in #​1990
Bug Fixes 🐞
  • fix(browser): align planned locator gaps with implementation by @​9aoy in #​1970
  • fix(core): only escape : and , in GitHub Actions annotation properties by @​kwy404 in #​1985
Document 📖
Other Changes

Full Changelog: v0.12.4...v0.12.5

v0.12.4

Compare Source

Highlights
Screenshot testing in Browser Mode

related PR: #​1962

Rstest now supports visual assertions for both elements and entire pages. Use toMatchScreenshot() to compare a Locator or Page against a saved baseline. When screenshots differ, Rstest reports the mismatch and saves the actual and diff images. Page screenshots capture the viewport by default; set fullPage: true to capture the full page.

await expect(page.getByRole('button', { name: 'Submit' })).toMatchScreenshot();

await expect(page).toMatchScreenshot('full-page', { fullPage: true });

👉 Rstest - toMatchScreenshot

What's Changed
New Features 🎉
Performance 🚀
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: web-infra-dev/rstest@v0.12.3...v0.12.4

v0.12.3

Compare Source

What's Changed
New Features 🎉
Performance 🚀
  • perf(coverage-istanbul): stop resending structure maps the host already holds by @​fi3ework in #​1895
Bug Fixes 🐞
Document 📖
  • docs: document partial mock limitations with top-level await by @​9aoy in #​1912
  • docs: explain dependency export conditions for Jest migration by @​9aoy in #​1900
Other Changes

Full Changelog: web-infra-dev/rstest@v0.12.2...v0.12.3

v0.12.2

Compare Source

What's Changed
New Features 🎉
Bug Fixes 🐞
Document 📖
Other Changes

Full Changelog: web-infra-dev/rstest@v0.12.1...v0.12.2

v0.12.1

Compare Source

What's Changed
New Features 🎉
Performance 🚀
Bug Fixes 🐞
Refactor 🔨
Document 📖
Other Changes

Full Changelog: web-infra-dev/rstest@v0.12.0...main

v0.12.0

Compare Source

Read the Rstest 0.12 announcement for the full story.

Breaking Changes

If you only use the rstest CLI with a config file, no code changes are needed.

JavaScript API

The experimental JavaScript API is redesigned in 0.12, in one step before 1.0. See Rstest instance for the new API.

  • runRstest is removed. Create an instance with createRstest instead.
  • runCLI moves from @rstest/core to @rstest/core/api.
  • TestRunResult has the same shape as the reporter's onTestRunEnd payload, and status: 'pass' | 'fail' | 'error' replaces ok.
Custom reporters

See Reporter API for details.

  • onTestRunEnd now receives summary, and unhandledErrors is a required SerializedError[] instead of an optional Error[].
  • filterRerunTestPaths is renamed to rerunTestPaths.
  • onExit is now also called after a run, list, or merge finishes normally, not only on an abnormal exit.
Peer dependency range

The adapters, @rstest/browser-react, @rstest/coverage-istanbul, @rstest/coverage-v8, and @rstest/playwright now require @rstest/core@^0.12.0. Upgrade all @rstest/* packages together.

Test environment prebundle

testEnvironment.prebundle now defaults to 'auto'. If a test environment behaves differently after the upgrade, set it to false. See Environment prebundle.

Highlights

Rstest 0.12 adds E2E and Module Federation testing support, makes large test suites faster with VM pools and test environment prebundle, and introduces a new JavaScript API.

E2E testing support

@​rstest/playwright integrates Playwright into Rstest, so unit tests, component tests, and E2E tests share one config, one set of commands, and the same reporters. Use definePlaywrightConfig to get the same defaults as Playwright and customize them when needed. See E2E testing.

import { expect, test } from '@rstest/playwright';

test('page title', async ({ page }) => {
  await page.goto('https://example.com');
  await expect(page).toHaveTitle(/Example/);
});
Module Federation testing support

With the @​module-federation/rstest plugin, tests import remote modules the same way a consumer application does. Rstest loads the real exposed modules and resolves shared dependencies, so integration problems between consumer and producer show up in unit tests. It works in Node, jsdom, happy-dom, and browser mode. See Module Federation.

New vmThreads and vmForks pools

The new vmThreads and vmForks pools reuse workers across test files and create a fresh vm.Context for each file. Each file still gets its own JavaScript realm and module graph, while worker startup, dependency resolution, and V8 compilation are shared. This helps most in suites with many jsdom / happy-dom test files.

On a jsdom benchmark project of 2,400 files and 20,000 tests (15 workers, every process starting from an empty cache):

Pool Wall time
forks 315.17s
vmThreads ⚡ 33.22s

To limit the memory of a single worker, set pool.memoryLimit. Rstest replaces a worker once it exceeds the threshold. See Choose a pool type before switching.

Faster jsdom / happy-dom loading

Test environment prebundle is now enabled by default. Previously, every worker resolved and executed each module file of jsdom or happy-dom one by one. Rstest now builds the environment into one ESM bundle that all workers share.

On a benchmark of 100 files and 1,000 tests:

Environment Native Prebundle Improvement
jsdom 30.0.1 16.99s ⚡ 10.57s 37.8%
happy-dom 20.11.1 6.35s ⚡ 2.98s 53.0%
A new JavaScript API

createRstest makes it easier to integrate Rstest into tools, IDEs, and other Node.js programs. It shares the same core execution capabilities as the rstest command, so you can run tests, watch, list tests, and merge blob reports from code. See Rstest instance.

import { createRstest } from '@rstest/core/api';

const rstest = await createRstest({
  cwd: './packages/app',
  config: { include: ['src/**/*.test.ts'] },
});

const result = await rstest.run();
console.log(result.status, result.summary);
What's Changed
Breaking Changes 🍭
New Features 🎉
Performance 🚀
Bug Fixes 🐞
Refactor 🔨
Document 📖
Other Changes

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (in timezone America/Chicago)

  • Branch creation
    • "before 6am on monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@github-actions

github-actions Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Rsdoctor Bundle Diff Analysis

📊 Quick Summary
Project Total Size Change
dist 33.3 KB 0

Generated by Rsdoctor GitHub Action

@renovate
renovate Bot force-pushed the renovate/rstest branch 2 times, most recently from ff925f3 to 13de1f1 Compare September 2, 2026 11:04
@renovate renovate Bot changed the title deps(renovate): update rstest to v0.11.9 deps(renovate): update rstest to v0.11.10 Sep 2, 2026
@renovate
renovate Bot force-pushed the renovate/rstest branch from 13de1f1 to e2d4374 Compare September 7, 2026 10:54
@renovate renovate Bot changed the title deps(renovate): update rstest to v0.11.10 deps(renovate): update rstest to v0.11.11 Sep 7, 2026
@renovate
renovate Bot force-pushed the renovate/rstest branch 2 times, most recently from 227a79c to c1b1556 Compare September 10, 2026 17:43
@renovate renovate Bot changed the title deps(renovate): update rstest to v0.11.11 deps(renovate): update rstest to v0.11.12 Sep 10, 2026
@renovate
renovate Bot force-pushed the renovate/rstest branch 2 times, most recently from ebc29af to 0d918f5 Compare September 17, 2026 19:41
@renovate renovate Bot changed the title deps(renovate): update rstest to v0.11.12 deps(renovate): update rstest to v0.12.0 Sep 24, 2026
@renovate renovate Bot changed the title deps(renovate): update rstest to v0.12.0 deps(renovate): update rstest to v0.12.1 Sep 30, 2026
@renovate
renovate Bot force-pushed the renovate/rstest branch from 757d265 to dffe6af Compare October 2, 2026 05:38
@renovate renovate Bot changed the title deps(renovate): update rstest to v0.12.1 deps(renovate): update rstest to v0.12.2 Oct 2, 2026
@renovate
renovate Bot force-pushed the renovate/rstest branch 2 times, most recently from 5dd83b2 to 9515fbe Compare October 7, 2026 08:49
@renovate renovate Bot changed the title deps(renovate): update rstest to v0.12.2 deps(renovate): update rstest to v0.12.3 Oct 7, 2026
@renovate
renovate Bot force-pushed the renovate/rstest branch 2 times, most recently from 445a8ed to 1a1c873 Compare October 20, 2026 11:57
@renovate
renovate Bot force-pushed the renovate/rstest branch 2 times, most recently from 603c19f to 600b260 Compare October 26, 2026 08:48
@renovate renovate Bot changed the title deps(renovate): update rstest to v0.12.3 deps(renovate): update rstest to v0.12.4 Oct 26, 2026
@renovate
renovate Bot force-pushed the renovate/rstest branch from 600b260 to 1619821 Compare November 3, 2026 11:45
@renovate renovate Bot changed the title deps(renovate): update rstest to v0.12.4 deps(renovate): update rstest to v0.12.5 Nov 3, 2026
@renovate
renovate Bot force-pushed the renovate/rstest branch from 1619821 to cc82a18 Compare November 10, 2026 17:49
@renovate renovate Bot changed the title deps(renovate): update rstest to v0.12.5 deps(renovate): update rstest to v0.12.6 Nov 10, 2026
@renovate
renovate Bot force-pushed the renovate/rstest branch from cc82a18 to d08cf0c Compare November 11, 2026 01:14
@renovate
renovate Bot force-pushed the renovate/rstest branch 3 times, most recently from fd75185 to ddab945 Compare November 11, 2026 01:23
@renovate
renovate Bot force-pushed the renovate/rstest branch from ddab945 to f38abe9 Compare November 12, 2026 02:41

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants