Skip to content
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

test: skips for handle test (test stability) #719

Merged
merged 1 commit into from
Jun 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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