You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that jest in using stderr to print output even for passed tests, this means the exec('npm', ['test']) will reject as well giving a false negative thrown error.
According to this #5064 open issue, jest still seems to be buggy.
Solution to this will be either to drop the --test option or to refactor exec to handle stderr as not error and resolve to { stdout, stderr } and leave the caller to decide what to do if stderr is not null.
Note: this is related only to those using jest for testing via npm test.
The client exits with code 2 when using the
--test
option:The text was updated successfully, but these errors were encountered: