/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v25.8.0
test/sea/test-single-executable-application-esm.js
33 строки
720 B
Joyee Cheung
sea: support ESM entry point in SEA
19 фев 2026, 13:14
Не верифицирован
19 фев 2026, 13:14
2d874df
Код
Авторство
О чём код?
'use strict'; require('../common'); const { buildSEA, skipIfBuildSEAIsNotSupported, } = require('../common/sea'); skipIfBuildSEAIsNotSupported(); // This tests the creation of a single executable application with an ESM // entry point using the "mainFormat": "module" configuration. const tmpdir = require('../common/tmpdir'); const fixtures = require('../common/fixtures'); const { spawnSyncAndExitWithoutError } = require('../common/child_process'); tmpdir.refresh(); const outputFile = buildSEA(fixtures.path('sea', 'esm')); spawnSyncAndExitWithoutError( outputFile, { env: { NODE_DEBUG_NATIVE: 'SEA', ...process.env, }, }, { stdout: /ESM SEA executed successfully/, });