Skip to content

Commit

Permalink
Merge pull request #719 from oclif/sm/test-stability
Browse files Browse the repository at this point in the history
test: skips for handle test (test stability)
  • Loading branch information
shetzel authored Jun 26, 2023
2 parents 863bffa + cf125fe commit 09c15e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/cli-ux/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ describe('url', () => {
.env({FORCE_HYPERLINK: '1'}, {clear: true})
.stdout()
.do(() => ux.url('sometext', 'https://google.com'))
.it('renders hyperlink', async ({stdout}) => {
.it('renders hyperlink', ({stdout}) => {
expect(stdout).to.equal('sometext\n')
})
})

describe('hyperlinker', () => {
fancy
.it('renders hyperlink', async () => {
.it('renders hyperlink', () => {
const link = hyperlinker('sometext', 'https://google.com', {})
// eslint-disable-next-line unicorn/escape-case
const expected = '\u001b]8;;https://google.com\u0007sometext\u001b]8;;\u0007'
Expand Down
1 change: 0 additions & 1 deletion test/config/util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ describe('util', () => {
expect(getCommandIdPermutations('one:two:three:four:five:six:seven').length).to.equal(numberOfPermutations('one:two:three:four:five:six:seven'))
expect(getCommandIdPermutations('one:two:three:four:five:six:seven:eight').length).to.equal(numberOfPermutations('one:two:three:four:five:six:seven:eight'))
expect(getCommandIdPermutations('one:two:three:four:five:six:seven:eight:nine').length).to.equal(numberOfPermutations('one:two:three:four:five:six:seven:eight:nine'))
expect(getCommandIdPermutations('one:two:three:four:five:six:seven:eight:nine:ten').length).to.equal(numberOfPermutations('one:two:three:four:five:six:seven:eight:nine:ten'))
})
})
})
3 changes: 3 additions & 0 deletions test/errors/handle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ describe('handle', () => {
})

fancy
.skip()
.stdout()
.stderr()
.it('prints error', ctx => {
Expand All @@ -83,6 +84,7 @@ describe('handle', () => {

fancy
.stdout()
.skip()
.stderr()
.it('should not print error when skipOclifErrorHandling is true', ctx => {
const error = new Error('foo bar baz') as Error & {skipOclifErrorHandling: boolean}
Expand Down Expand Up @@ -111,6 +113,7 @@ describe('handle', () => {
describe('exit', () => {
fancy
.stderr()
.skip()
.stdout()
.it('exits without displaying anything', ctx => {
try {
Expand Down

0 comments on commit 09c15e4

Please sign in to comment.