/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v24.18.1
test/sea/test-single-executable-application-use-code-cache.js
36 строк
799 B
Joyee Cheung
test: use fixture directories for sea tests
23 фев 2026, 01:16
Не верифицирован
23 фев 2026, 01:16
345a40f
Код
Авторство
О чём код?
'use strict'; require('../common'); const { generateSEA, skipIfSingleExecutableIsNotSupported, } = require('../common/sea'); skipIfSingleExecutableIsNotSupported(); // This tests the creation of a single executable application which uses the // V8 code cache. const tmpdir = require('../common/tmpdir'); const { spawnSyncAndAssert } = require('../common/child_process'); const { join } = require('path'); const fixtures = require('../common/fixtures'); tmpdir.refresh(); const outputFile = generateSEA(fixtures.path('sea', 'use-code-cache')); spawnSyncAndAssert( outputFile, [ '-a', '--b=c', 'd' ], { env: { COMMON_DIRECTORY: join(__dirname, '..', 'common'), NODE_DEBUG_NATIVE: 'SEA', ...process.env, }, }, { stdout: 'Hello, world! 😊\n', });