/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v26.3.1
test/module-hooks/test-async-loader-hooks-initialize-invoke.mjs
22 строки
544 B
Joyee Cheung
test: split test-esm-loader-hooks
16 янв 2026, 17:30
Не верифицирован
16 янв 2026, 17:30
3da4dce
Код
Авторство
О чём код?
// Test that `initialize` should be invoked correctly import '../common/index.mjs'; import { execPath } from 'node:process'; import fixtures from '../common/fixtures.js'; import { spawnSyncAndAssert } from '../common/child_process.js'; spawnSyncAndAssert( execPath, [ '--no-warnings', '--experimental-loader', fixtures.fileURL('es-module-loaders/hooks-initialize.mjs'), '--input-type=module', '--eval', 'import os from "node:os";', ], { stdout: 'hooks initialize 1', stderr: '', trim: true, }, );