mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-10 22:06:22 +10:00
13 lines
327 B
JavaScript
13 lines
327 B
JavaScript
const execa = require('execa')
|
|
const rawArgs = process.argv.slice(2)
|
|
|
|
module.exports = function createJestRunner (jestArgs) {
|
|
return async function () {
|
|
const args = [...jestArgs, ...rawArgs]
|
|
console.log(`running jest with args: ${args.join(' ')}`)
|
|
await execa('jest', args, {
|
|
stdio: 'inherit'
|
|
})
|
|
}
|
|
}
|