node/test/embedding/test-embedding-create-require-internal.js
Joyee Cheung a879b39778
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
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-02-08 13:18:27 +00:00

15 lines
402 B
JavaScript

'use strict';
// Tests that createRequire() from embedded environments still cannot access internals.
// The createRequire() call is in embedtest.cc.
const common = require('../common');
const { spawnSyncAndExit } = require('../common/child_process');
spawnSyncAndExit(
common.resolveBuiltBinary('embedtest'),
['require("lib/internal/test/binding")'],
{
status: 1,
signal: null,
});