Files
node/test/embedding/test-embedding-load-environment-utf8.js
T
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

18 lines
419 B
JavaScript

'use strict';
// Test node::LoadEnvironment() works with non-ASCII source code. The variable
// comes from embedtest.cc.
const common = require('../common');
const { spawnSyncAndAssert } = require('../common/child_process');
const embedtest = common.resolveBuiltBinary('embedtest');
spawnSyncAndAssert(
embedtest,
['console.log(embedVars.nön_ascıı)'],
{
trim: true,
stdout: '🏳️‍🌈',
});