build(hololake): use runner config loading
This commit is contained in:
parent
dc1a32a52b
commit
1cde630864
4 changed files with 16 additions and 11 deletions
|
|
@ -20,4 +20,6 @@ test('local native candidate has an isolated macOS package identity', async () =
|
|||
packageJson.scripts['package:local-candidate:macos'],
|
||||
/tauri\.local-candidate\.conf\.json/,
|
||||
)
|
||||
assert.match(packageJson.scripts.build, /--configLoader runner/)
|
||||
assert.match(packageJson.scripts['test:native-core'], /--configLoader runner/)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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