Skip to content

Commit 8749f4b

Browse files
chore: test case for command suggestion (#5228)
1 parent 74ca541 commit 8749f4b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const path = require('path')
2+
const execa = require('execa')
3+
4+
const CLI_PATH = path.resolve(__dirname, '..', 'bin', 'vue.js')
5+
6+
const runAsync = async args => await execa(CLI_PATH, args)
7+
8+
test('suggests matching command', async () => {
9+
const { stdout } = await runAsync(['confgi'])
10+
expect(stdout).toContain('Did you mean config?')
11+
})

0 commit comments

Comments
 (0)