-
Notifications
You must be signed in to change notification settings - Fork 470
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
Github actions - tests pass but execution fails on Process completed with exit code 1. #1292
Comments
Hi @gnesher! Thanks for opening this one. |
I'm closing this as no reproduction was provided. |
I'm experiencing this. 2024-12-08T00:03:07.2049575Z PASS Tests\Unit\ExampleTest I've attached the logs. Any input welcomed. It's very frustrating! [edit for additional info per OP] Relevant code or config:PHP, Laravel, PHPUnit What you did:Running test suit passes fine locally and all tests are reported to have passed successfully on GitHub Actions:
Problem description: Suggested solution:GitHub CoPilot suggests the following:
But:
I've attached the workflow file also, for context. |
@testing-library/dom
version: 7.31.2jsdom 27.4.4
Relevant code or config:
N/A
What you did:
Runnig test suit passes fine locally and all tests are reported to have passed successfully on github actions i.e.
But tests still fail with exit code 1
Problem description:
Tests pass successfully but the test fails on Github Actions with error code 1 while reporting all tests passed
Suggested solution:
The last time we encountered this issue we solved it by ensuring that waitFor is limited to 1 except (but while this isn't recommended according to https://kentcdodds.com/blog/common-mistakes-with-react-testing-library#having-multiple-assertions-in-a-single-waitfor-callback - it shouldn't cause this
The text was updated successfully, but these errors were encountered: