build(hololake): use runner config loading
This commit is contained in:
parent
dc1a32a52b
commit
1cde630864
4 changed files with 16 additions and 11 deletions
|
|
@ -33,8 +33,8 @@ const packageManagerExec = process.env.npm_execpath
|
|||
const isJsExecpath = packageManagerExec && /\.[mc]?js$/i.test(packageManagerExec)
|
||||
const command = isJsExecpath ? process.execPath : 'pnpm'
|
||||
const baseCommandArgs = isJsExecpath
|
||||
? [packageManagerExec, 'exec', 'vitest', 'run', '--coverage']
|
||||
: ['exec', 'vitest', 'run', '--coverage']
|
||||
? [packageManagerExec, 'exec', 'vitest', 'run', '--coverage', '--configLoader', 'runner']
|
||||
: ['exec', 'vitest', 'run', '--coverage', '--configLoader', 'runner']
|
||||
const clearCacheCommandArgs = isJsExecpath
|
||||
? [packageManagerExec, 'exec', 'vitest', '--clearCache']
|
||||
: ['exec', 'vitest', '--clearCache']
|
||||
|
|
|
|||
Loading…
Reference in a new issue