/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v24.16.0
test/sea/test-single-executable-application-empty.js
45 строк
957 B
Joyee Cheung
test: use fixture directories for sea tests
23 фев 2026, 01:16
Не верифицирован
23 фев 2026, 01:16
345a40f
Код
Авторство
О чём код?
'use strict'; const common = require('../common'); const { generateSEA, skipIfSingleExecutableIsNotSupported, } = require('../common/sea'); skipIfSingleExecutableIsNotSupported(); // This tests the creation of a single executable application with an empty // script. const tmpdir = require('../common/tmpdir'); const fixtures = require('../common/fixtures'); const { spawnSyncAndExitWithoutError } = require('../common/child_process'); tmpdir.refresh(); let outputFile; try { outputFile = generateSEA(fixtures.path('sea', 'empty'), { verifyWorkflow: true, }); } catch (e) { if (/Cannot copy/.test(e.message)) { common.skip(e.message); } else if (common.isWindows) { if (/Cannot sign/.test(e.message) || /Cannot find signtool/.test(e.message)) { common.skip(e.message); } } throw e; } spawnSyncAndExitWithoutError( outputFile, { env: { NODE_DEBUG_NATIVE: 'SEA', ...process.env, }, });