-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: test cases having non-deterministic behaviour #302
Conversation
const result = convertToHyperlink('MORE INFO', 'https://twilio.com/docs/dummyCmd').isSupported; | ||
if ('CI' in process.env) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the hyperlink flag --hyperlink
is set to true
, it'll be honoured in CI environments too. Reference.
expect( | ||
getFlagConfig( | ||
{ | ||
name: 'DummyCmd', | ||
schema: { | ||
description: | ||
"The SID of the [Account](https://www.twilio.com/docs/iam/api/account) to which the Sim resource should belong. Account or that of a [Subaccount](https://www.twilio.com/docs/iam/api/subaccounts) of the requesting Account. Only valid when the Sim resource's status is `new`. For more information, see the [Move SIMs between Subaccounts documentation](https://www.twilio.com/docs/wireless/api/sim-resource#move-sims-between-subaccounts).", | ||
'The SID of the [Account](https://www.twi lio.com/docs/iam/api/account) to which the Sim resource should belong. ', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the gap twi lio
is intentional ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's to verify the markdown regex. With space it would be an invalid markdown. This is a useful reference to verify markdowns.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM:rocket:.
b62e456
to
792ba0a
Compare
Fixes 136
Testing Gist
This PR solves:
Some test cases were 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-color
. supports-color is an internal dependency insupports-hyperlink
.This issue is resolved for Emacs users, however in IDE terminals it still causes problems, there's this agreed workaround which fixes it.
Screenshots:
In VSCode:
In IntelliJ:
Checklist
If you have questions, please file a support ticket, or create a GitHub Issue in this repository.