mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-25 00:29:06 -06:00
15 lines
409 B
JavaScript
15 lines
409 B
JavaScript
const path = require('path')
|
|
const execa = require('execa')
|
|
|
|
const CLI_PATH = path.resolve(__dirname, '..', 'bin', 'vue.js')
|
|
|
|
const runAsync = (args, options) => execa(CLI_PATH, args, options)
|
|
|
|
test('suggests matching command', async () => {
|
|
const { code, stdout } = await runAsync(['confgi'], { reject: false })
|
|
|
|
// Assertions
|
|
expect(code).toBe(1)
|
|
expect(stdout).toContain('Did you mean config?')
|
|
})
|