Skip to content

fix(types): loosen reporter type to support older versions#855

Merged
9aoy merged 3 commits intomainfrom
loose-reporter-type
Jan 9, 2026
Merged

fix(types): loosen reporter type to support older versions#855
9aoy merged 3 commits intomainfrom
loose-reporter-type

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Jan 9, 2026

Summary

use loosen reporter type to support older versions.

img_v3_02tp_43854f27-12c0-43de-949c-b88752084f8g

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings January 9, 2026 09:43
@netlify
Copy link
Copy Markdown

netlify bot commented Jan 9, 2026

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 4e4acf2
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/6960eba519af9a00094697d2
😎 Deploy Preview https://deploy-preview-855--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request loosens the reporters type definition to support backward compatibility with older versions of @rstest/core (>=0.7.7). The changes allow adapters to work with different versions of the core package that may have had different reporter type definitions.

Key Changes:

  • Introduced LooseRstestConfig type that replaces the strict Reporter type with any for the reporters field
  • Updated ExtendConfig and ExtendConfigFn to use the new loosened type
  • Added peer dependency constraints for @rstest/core (>=0.7.7) in adapter packages

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/core/src/types/config.ts Introduces LooseRstestConfig type with relaxed reporter typing and updates dependent types
packages/adapter-rslib/package.json Adds minimum version constraint for @rstest/core peer dependency
packages/adapter-rsbuild/package.json Adds minimum version constraint for @rstest/core peer dependency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

9aoy and others added 2 commits January 9, 2026 19:04
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@9aoy 9aoy merged commit aeea423 into main Jan 9, 2026
15 checks passed
@9aoy 9aoy deleted the loose-reporter-type branch January 9, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants