mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-21 20:08:41 -05:00
test: add test-plugin script
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
const execa = require('execa')
|
||||
|
||||
const plugins = process.argv.slice(2)
|
||||
const regex = new RegExp(`.*cli-plugin-(${plugins.join('|')})/.*\\.spec\\.js$`)
|
||||
|
||||
;(async () => {
|
||||
await execa('jest', [
|
||||
'--env', 'node',
|
||||
'--runInBand',
|
||||
regex.toString().slice(1, -1)
|
||||
], {
|
||||
stdio: 'inherit'
|
||||
})
|
||||
})().catch(err => {
|
||||
console.error(err)
|
||||
process.exit(1)
|
||||
})
|
||||
Reference in New Issue
Block a user