Only leave a smoking test for the postject-based workflow in test-single-executable-application.js PR-URL: https://github.com/nodejs/node/pull/61167 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
31 lines
663 B
JavaScript
31 lines
663 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
const {
|
|
buildSEA,
|
|
skipIfBuildSEAIsNotSupported,
|
|
} = require('../common/sea');
|
|
|
|
skipIfBuildSEAIsNotSupported();
|
|
|
|
// This tests the snapshot support in single executable applications.
|
|
const tmpdir = require('../common/tmpdir');
|
|
|
|
const {
|
|
spawnSyncAndExitWithoutError,
|
|
} = require('../common/child_process');
|
|
const fixtures = require('../common/fixtures');
|
|
|
|
tmpdir.refresh();
|
|
const outputFile = buildSEA(fixtures.path('sea', 'assets-raw'));
|
|
|
|
spawnSyncAndExitWithoutError(
|
|
outputFile,
|
|
{
|
|
env: {
|
|
...process.env,
|
|
NODE_DEBUG_NATIVE: 'SEA',
|
|
__TEST_PERSON_JPG: fixtures.path('person.jpg'),
|
|
},
|
|
},
|
|
);
|