Skip to content

Commit

Permalink
chore: test case for command suggestion (#5228)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Mar 11, 2020
1 parent 74ca541 commit 8749f4b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/@vue/cli/__tests__/args.spec.js
@@ -0,0 +1,11 @@
const path = require('path')
const execa = require('execa')

const CLI_PATH = path.resolve(__dirname, '..', 'bin', 'vue.js')

const runAsync = async args => await execa(CLI_PATH, args)

test('suggests matching command', async () => {
const { stdout } = await runAsync(['confgi'])
expect(stdout).toContain('Did you mean config?')
})

0 comments on commit 8749f4b

Please sign in to comment.