mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-20 14:19:59 -06:00
19 lines
517 B
JavaScript
19 lines
517 B
JavaScript
module.exports = api => {
|
|
api.describeTask({
|
|
match: /vue-cli-service test:e2e/,
|
|
description: 'nightwatch.tasks.test.description',
|
|
link: 'https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-e2e-nightwatch#injected-commands',
|
|
prompts: [
|
|
{
|
|
name: 'url',
|
|
type: 'input',
|
|
default: '',
|
|
description: 'nightwatch.tasks.test.url'
|
|
}
|
|
],
|
|
onBeforeRun: ({ answers, args }) => {
|
|
if (answers.url) args.push('--url', answers.url)
|
|
}
|
|
})
|
|
}
|