Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite brittle test to more resilient, ignoring FORCE_COLOR (elastic…
…#187539) ## Summary We've seen the tests go both ways on the new infra. Sometimes the received object would have, sometimes it wouldn't have `FORCE_COLOR`. The value comes from here: https://github.com/elastic/kibana/blob/41eb6e2b12aa23ea03c852869cfe908fd80b02bc/packages/kbn-cli-dev-mode/src/using_server_process.ts#L39 - meaning `process.stdout.isTTY` is not always true? Here, it fails because the snapshot doesn't have the flag: https://buildkite.com/elastic/kibana-on-merge/builds/47027#01907bbb-3fae-48c4-95ca-85118ba2c2b8 Here, it because the snapshot has the flag: https://buildkite.com/elastic/kibana-pull-request/builds/219429 This PR tries to ignore that part of the received object.
- Loading branch information