/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v26.2.0
test/module-hooks/test-module-hooks-preload.js
45 строк
2 KB
Marco Ippolito
module: remove --experimental-transform-types
27 фев 2026, 19:32
Не верифицирован
27 фев 2026, 19:32
89f4b6c
Код
Авторство
О чём код?
'use strict'; require('../common'); const fixtures = require('../common/fixtures.js'); const { spawnSyncAndAssert } = require('../common/child_process.js'); spawnSyncAndAssert(process.execPath, [ '--require', fixtures.path('module-hooks', 'register-typescript-hooks.js'), fixtures.path('module-hooks', 'log-user.cts'), ], { trim: true, stdout: 'UserAccount { name: \'john\', id: 100, type: 1 }', }); spawnSyncAndAssert(process.execPath, [ '--require', fixtures.path('module-hooks', 'register-typescript-hooks.js'), fixtures.path('module-hooks', 'log-user.cts'), ], { trim: true, stdout: 'UserAccount { name: \'john\', id: 100, type: 1 }', }); spawnSyncAndAssert(process.execPath, [ '--import', fixtures.fileURL('module-hooks', 'register-typescript-hooks.js'), fixtures.path('module-hooks', 'log-user.mts'), ], { trim: true, stdout: 'UserAccount { name: \'john\', id: 100, type: 1 }', }); spawnSyncAndAssert(process.execPath, [ '--import', fixtures.fileURL('module-hooks', 'register-typescript-hooks.js'), fixtures.path('module-hooks', 'log-user.mts'), ], { trim: true, stdout: 'UserAccount { name: \'john\', id: 100, type: 1 }', });