pact-ruby
pact-ruby copied to clipboard
Do not use ANSI colours when printing to non interactive terminal
eg.
[31mActual interactions do not match expected interactions for mock Media Project Revenue.
Reverting the following change in pact-support will fix this behaviour, but will cause some tests to fail in pact-ruby (as gha uses non interactive terminals)
https://github.com/pact-foundation/pact-support/commit/0585424a617c2aac5b0eb73ae6915087c70b3b00#diff-3df67314b1e956a19eebf4f7291abe158bf454c031522388ee504e7bd553cc2cR119
the new library we are using 'rainbow' will detect if dumb term or tty and disable colour codes from output