Non deterministic behaviour of test cases in different terminals - ravali-rimmalapudi/twilio-cli GitHub Wiki
Problem:
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).
Solution:
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'