Skip to content

Comments

fix: describe.each type error#707

Merged
9aoy merged 2 commits intomainfrom
fix/describe-each-type
Nov 20, 2025
Merged

fix: describe.each type error#707
9aoy merged 2 commits intomainfrom
fix/describe-each-type

Conversation

@9aoy
Copy link
Collaborator

@9aoy 9aoy commented Nov 20, 2025

Summary

fix describe.each type error
e2454aa3-9440-469c-a5f1-2330b554be9d

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings November 20, 2025 03:21
@netlify
Copy link

netlify bot commented Nov 20, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 47fa5ad
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/691e89e8f79ecc0009447f35
😎 Deploy Preview https://deploy-preview-707--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
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 PR fixes a type error in describe.each by adding a new generic overload to the DescribeEachFn interface. This allows describe.each to work with arrays of interface types (like TestCase[]) where the test callback receives the object as a single parameter rather than spreading it into multiple arguments.

  • Adds a new generic type overload to DescribeEachFn for handling arbitrary array types
  • Updates test expectations to account for the new test case
  • Adds a test case using an interface-typed array to verify the fix

Reviewed Changes

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

File Description
packages/core/src/types/api.ts Adds new generic overload to DescribeEachFn to support interface-typed arrays
e2e/describe/each.test.ts Adds test case exercising describe.each with TestCase[] and updates expected log count

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@9aoy 9aoy merged commit 69c3516 into main Nov 20, 2025
16 checks passed
@9aoy 9aoy deleted the fix/describe-each-type branch November 20, 2025 03:33
@9aoy 9aoy mentioned this pull request Nov 20, 2025
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.

1 participant