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>
37 lines
700 B
JavaScript
37 lines
700 B
JavaScript
'use strict';
|
|
|
|
// This test verifies that the `getAssetKeys()` function works correctly
|
|
// in a single executable application without any assets.
|
|
|
|
require('../common');
|
|
|
|
const {
|
|
buildSEA,
|
|
skipIfBuildSEAIsNotSupported,
|
|
} = require('../common/sea');
|
|
|
|
skipIfBuildSEAIsNotSupported();
|
|
|
|
const tmpdir = require('../common/tmpdir');
|
|
|
|
const {
|
|
spawnSyncAndAssert,
|
|
} = require('../common/child_process');
|
|
const fixtures = require('../common/fixtures');
|
|
|
|
tmpdir.refresh();
|
|
|
|
const outputFile = buildSEA(fixtures.path('sea', 'asset-keys-empty'));
|
|
|
|
spawnSyncAndAssert(
|
|
outputFile,
|
|
{
|
|
env: {
|
|
...process.env,
|
|
NODE_DEBUG_NATIVE: 'SEA',
|
|
},
|
|
},
|
|
{
|
|
stdout: /Asset keys: \[\]/,
|
|
},
|
|
);
|