Skip to content

Commit 13554aa

Browse files
committed
test(sea): exercise package manager dispatch in native smoke
1 parent e47f89e commit 13554aa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/repo/cli-build/sea/check.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ export async function main(): Promise<void> {
7171
}
7272
).header.glibcVersionRuntime,
7373
)
74-
for (const arg of ['--version', '--help']) {
75-
const result = await spawn(seaBinaryPath(host), [arg], {
74+
for (const args of [['--version'], ['--help'], ['npm', '--version']]) {
75+
const result = await spawn(seaBinaryPath(host), args, {
7676
stdio: 'pipe',
7777
timeout: 60_000,
7878
})
7979
if (result.code !== 0 || !result.stdout.toString().trim()) {
8080
throw new Error(
81-
`SEA smoke test failed for ${arg}: ${result.stderr}. Rebuild the executable.`,
81+
`SEA smoke test failed for ${args.join(' ')}: ${result.stderr}. Rebuild the executable.`,
8282
)
8383
}
8484
}

0 commit comments

Comments
 (0)