[Bug]: depends dont work with data sets
Open
Nobody has claimed this yet.
bug
- Dominant language
- PHP
- Stars
- 11.7k
- Forks
- 538
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 8
Description
What Happened
when i use ->with() in a parent test the chield test never get passed data
How to Reproduce
it('returns', function ($data) {
expect($data)->toBeTrue();
return 'example';
})->with([true]);
it('shows', function ($parentData) {
expect($parentData)->toEqual('example');
})->depends('it returns');
Sample Repository
No response
Pest Version
^3.5
PHP Version
^8.2
Operation System
Windows
Notes
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the reproduction with Pest 3.5 and PHP 8.2, focusing on how a dataset passed through with() is handled when the test depends on another test. Done means the dependent test receives the parent test's returned value and the provided assertions pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100