Files
node/test/embedding/test-embedding-create-require-fs.js
T
Joyee Cheung 11d1bd3ba7 test: split test-embedding.js and run tests in parallel
Split the tests so that it's easier to isolate and debug issues,
and we can run the test cases in parallel to speed up. Also
add more comments about what they are testing.

PR-URL: https://github.com/nodejs/node/pull/61571
Backport-PR-URL: https://github.com/nodejs/node/pull/65219
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2026-08-21 09:11:20 +02:00

18 lines
502 B
JavaScript

'use strict';
// Tests that createRequire() works correctly with local fs in embedded environments.
// The createRequire() call is in embedtest.cc.
const common = require('../common');
const fixtures = require('../common/fixtures');
const { spawnSyncAndExit } = require('../common/child_process');
const fixturePath = JSON.stringify(fixtures.path('exit.js'));
spawnSyncAndExit(
common.resolveBuiltBinary('embedtest'),
[`require(${fixturePath})`, 92],
{
status: 92,
signal: null,
});