Skip to content

Commit e580505

Browse files
committed
update
fix ci fix ci fix ci
1 parent 6448a4e commit e580505

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Diff for: e2e/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ test('rejects promise due to error on passing in an unknown command', async t =>
2727
})
2828

2929
test('init the docs directory', async t => {
30-
const {stdout} = await execa(rootCommand, ['init', './test_docs'], {reject: false})
30+
// If you get `./test_docs already exists.`, delete the test_docs directory manually.
31+
const {stdout} = await execa(rootCommand, ['init', './test_docs'], {reject: false, timeout: 3000})
3132
t.snapshot(stdout)
3233
})
3334

3435
test('init the docs directory twice', async t => {
35-
const {stdout} = await execa(rootCommand, ['init', './test_docs'], {reject: false, input: 'n'})
36+
const {stdout} = await execa(rootCommand, ['init', './'], {reject: false, input: 'n'})
3637
t.snapshot(stdout)
3738
})

Diff for: e2e/index.js.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Generated by [AVA](https://ava.li).
1616

1717
> Snapshot 1
1818
19-
`./test_docs already exists.␊
19+
`./ already exists.␊
2020
? Are you sure you want to rewrite it? (Y/n) ? Are you sure you want to rewrite it? (Y/n) n? Are you sure you want to rewrite it? No`
2121

2222
## rejects promise due to error on passing in an unknown command

Diff for: e2e/index.js.snap

3 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)