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]: beforeAll from uses not triggered since 3.0.4 #1282

Open
laylatichy opened this issue Oct 1, 2024 · 2 comments
Open

[Bug]: beforeAll from uses not triggered since 3.0.4 #1282

laylatichy opened this issue Oct 1, 2024 · 2 comments
Labels

Comments

@laylatichy
Copy link

laylatichy commented Oct 1, 2024

What Happened

hook using

uses()->beforeAll

not triggered since v3.0.4

How to Reproduce

https://phpsandbox.io/n/aquamarine-boba-fett-lh7iw#tests/Pest.php

open terminal on the right and run vendor/bin/pest

image

exception is not thrown

meanwhile beforeEach runs fine

image

Sample Repository

https://phpsandbox.io/n/aquamarine-boba-fett-lh7iw#tests/Pest.php

Pest Version

3.0.4

PHP Version

8.3

Operation System

Linux

Notes

No response

@laylatichy laylatichy added the bug label Oct 1, 2024
@FrancisMawn
Copy link

We noticed the same breaking change when we updated from v2 to v3.

Is this intended? Is there a new way of handling this?

@laylatichy
Copy link
Author

@FrancisMawn I was being annoyed a bit that I had to pin pest to 3.0.3 for it to work so I created pr with fix for it, hopefully it will get merged so we can enjoy again ;)

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

2 participants