-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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: Setting readOnly properties in breakCircularDeps
breaks the reporter in parallel
mode with allow-uncaught
#5188
Comments
This is a regression caused by #5032 |
Could someone (@satyen95?) please post a full reproduction we can work with locally? We might have just fixed this with #5173 (to be released in a patch version soon). But it's hard to be sure we're doing the same steps as you without an actual reproduction. https://antfu.me/posts/why-reproductions-are-required#why-reproduction |
@JoshuaKGoldberg You can reproduce the issue via this zip, I have added the code for it |
@JoshuaKGoldberg Because the behaviour of it is correct in my main project, Run only fails/breaks when the worker processes close due to failure at setup time & not due to any failures in But the behaviour is different in the given example, run is stopped even due to failure in |
Great, thanks! I can reproduce the bug with that zip in its included Mocha version, 10.7.0. Aside, a tip: it's a little better practice to put the reproduction up on somewhere I can see it before unzipping potentially unsafe files to a file system 😄. I personally keep a https://github.com/JoshuaKGoldberg/repros repository; other folks make repositories per-issue or use something like GitHub Gists or Stackblitz.
Sorry, I don't understand what you're asking. The grammar is broken and I don't follow what you're trying to ask. Can you rephrase please? Anyway, the .zip has
Bumping to
💡 That's the same behavior as #5209! And, in fact, applying the changes in #5212 to
Running with
|
Bug Report Checklist
faq
label, but none matched my issue.Expected
Tests should run perfectly even if a
it
block (test) is failingError in it block (test) should not break
parallel-buffered-runner.js
even if--allow-uncaught
is passedActual
All the tests get executed in the expected behaviour, but before the EVENT_RUN_END the process fails while serializing the results with the below error:
Failure point:
Reason: Trying to set a read-only property, which only has a getter
Minimal, Reproducible Example
Config:
Library dependency (easy to reproduce):
axios: 1.6.8
Create a suite, create a test in it, and make an incorrect/failing API call
Run the tests it will break
Versions
Mocha version: 10.7.0
Node: v20.15.1
OS: MacOS Sonoma 14.2.1 (23C71)
Additional Info
No response
The text was updated successfully, but these errors were encountered: