Skip to content

Commit 8b62eac

Browse files
authored
Add test
1 parent bff93ce commit 8b62eac

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
'use strict';
2+
// This tests --build-sea with a custom argv0 value.
3+
4+
require('../common');
5+
6+
const { skipIfBuildSEAIsNotSupported } = require('../common/sea');
7+
8+
skipIfBuildSEAIsNotSupported();
9+
10+
const { resolve } = require('path');
11+
const fixtures = require('../common/fixtures');
12+
13+
const { spawnSyncAndAssert } = require('../common/child_process');
14+
const fixturesDir = fixtures.path('sea', 'basic');
15+
16+
spawnSyncAndAssert(
17+
process.execPath,
18+
['--build-sea', resolve(fixturesDir, 'sea-config.json')], {
19+
cwd: fixturesDir,
20+
argv0: 'argv0',
21+
}, {
22+
stdout: /Generated single executable/,
23+
});

0 commit comments

Comments
 (0)