-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
workarounds for browserify #52
Conversation
I still think this is better fixed in |
@@ -83,7 +84,9 @@ function exit() { | |||
stack(results); | |||
} | |||
|
|||
process.exit(stats.failCount > 0 ? 1 : 0); | |||
if (process.exit) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How will this work with hihat
? According to its docs:
The process will stay open until you call window.close()
Wouldn't it be better to call window.close
here if in the browser
. Or even better, keep it as before, and have hihat
shim process.exit
=> Experience-Monks/hihat#27
// @mattdesl |
Hmm.. In |
@mattdesl Good point. So what should we do here? |
Hmm. Perhaps |
Or even shim |
Agree with @mattdesl, on client-side |
It seems sorta weird that an API would ever call I feel like only the CLI should exit and handle errors itself, since in that case the user isn't handling them. |
@mattdesl this happens, because we want to cover a case when test is being executed directly.
So if only CLI would use |
I see. It's a bit of a special case then. |
To me that sounds the most reasonable way to me. Though I guess this is kind of a rare case anyways. |
It is, but it's still probably the correct way. Just a thought. |
Just curious if there's been any progress for the browser. Only thing keeping me from Ava. |
@kevva said he would make |
Might be more, though, as we recently introduced parallism, which forks the processes. Not sure whether browserify handles that or if we need to do some special casing. Help welcome. Our main focus is elsewhere. |
Browser support in |
So what should we decide on? Just check for |
Closing in favor of #97. |
fixes #24
stderr
is not available, inject the console insqueak
process.exit
is not available in the browser. Don't call the method if it is not available.