forked from twilio/twilio-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Non deterministic behaviour of test cases in different terminals
ravali-rimmalapudi edited this page Dec 2, 2021
·
2 revisions
Some test cases are not passing uniformly, when the process.env
variable is modified to mock different terminals(failed when ran individually and passed when ran in the suite).
This is a known issue with mocha when combined with supports-colour. It is an internal dependency in supports-hyperlink (which is used to convert markdowns to hyperlinks).The FORCE_COLOR
environment variable can be used to turn off Mocha's emission of terminal escape codes.
Set FORCE_COLOR = 1 or alternatively add this argument '--hyperlink=true'