Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: depends dont work with data sets #1314

Open
zayedadel opened this issue Nov 17, 2024 · 0 comments
Open

[Bug]: depends dont work with data sets #1314

zayedadel opened this issue Nov 17, 2024 · 0 comments
Labels

Comments

@zayedadel
Copy link

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

@zayedadel zayedadel added the bug label Nov 17, 2024
@zayedadel zayedadel changed the title [Bug]: [Bug]: depends dont work with data sets Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant