modules: fix sync hook short-circuit in require() in imported CJS #5851
test-shared.yml
on: pull_request
Build slim tarball
2m 36s
Matrix: build
Annotations
13 errors
|
aarch64-linux: with shared libraries
Process completed with exit code 2.
|
|
aarch64-linux: with shared libraries:
test/es-module/test-typescript.mjs#L249
--- stdout ---
Test failure: 'execute a TypeScript test mocking module'
Location: test/es-module/test-typescript.mjs:240:1
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /Hello, TypeScript-CommonJS!/. Input:
'Hello, TypeScript-Module!\n' +
'✖ logger (8.419239ms)\n' +
'ℹ tests 1\n' +
'ℹ suites 0\n' +
'ℹ pass 0\n' +
'ℹ fail 1\n' +
'ℹ cancelled 0\n' +
'ℹ skipped 0\n' +
'ℹ todo 0\n' +
'ℹ duration_ms 128.379564\n' +
'\n' +
'✖ failing tests:\n' +
'\n' +
'test at test/fixtures/typescript/ts/test-mock-module.ts:15:1\n' +
'✖ logger (8.419239ms)\n' +
' TypeError: mockedCommonjs is not a function\n' +
' at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/fixtures/typescript/ts/test-mock-module.ts:21:5)\n' +
' at async Test.run (node:internal/test_runner/test:1313:7)\n' +
' at async startSubtestAfterBootstrap (node:internal/test_runner/harness:385:3)\n'
at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/es-module/test-typescript.mjs:249:10)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1313:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:897:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'Hello, TypeScript-Module!\n' +
'✖ logger (8.419239ms)\n' +
'ℹ tests 1\n' +
'ℹ suites 0\n' +
'ℹ pass 0\n' +
'ℹ fail 1\n' +
'ℹ cancelled 0\n' +
'ℹ skipped 0\n' +
'ℹ todo 0\n' +
'ℹ duration_ms 128.379564\n' +
'...',
expected: /Hello, TypeScript-CommonJS!/,
operator: 'match',
diff: 'simple'
}
Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/es-module/test-typescript.mjs
|
|
aarch64-linux: with shared libraries:
test/parallel/test-runner-module-mocking.js#L559
--- stderr ---
(node:68435) ExperimentalWarning: Module mocking is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:68435) DeprecationWarning: mock.module(): options.namedExports is deprecated. Use options.exports instead.
(node:68435) DeprecationWarning: mock.module(): options.defaultExport is deprecated. Use options.exports.default instead.
--- stdout ---
Test failure: 'core module mocks can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:573:1
Error: Cannot find module 'node:readline?node-test-mock=5'
at node:internal/modules/cjs/loader:1492:15
at Object.cjsMockModuleLoad (node:internal/test_runner/mock/mock:913:16)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at loadCJSModuleWithModuleLoad (node:internal/modules/esm/translators:373:3)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:245:9)
at ModuleJob.run (node:internal/modules/esm/module_job:439:25)
at async node:internal/modules/esm/loader:656:26
at async assertCoreModuleMockWorksInBothModuleSystems (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:559:17)
at async TestContext.<anonymous> (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:574:3)
at async Test.run (node:internal/test_runner/test:1313:7) {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Test failure: 'node:- core module mocks can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:579:1
Error: Cannot find module 'node:readline?node-test-mock=7'
at node:internal/modules/cjs/loader:1492:15
at Object.cjsMockModuleLoad (node:internal/test_runner/mock/mock:913:16)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at loadCJSModuleWithModuleLoad (node:internal/modules/esm/translators:373:3)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:245:9)
at ModuleJob.run (node:internal/modules/esm/module_job:439:25)
at async node:internal/modules/esm/loader:656:26
at async assertCoreModuleMockWorksInBothModuleSystems (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:559:17)
at async TestContext.<anonymous> (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:580:3)
at async Test.run (node:internal/test_runner/test:1313:7) {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Test failure: 'CJS mocks can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:585:1
TypeError: esmImpl.fn is not a function
at TestContext.<anonymous> (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:594:30)
at async Test.run (node:internal/test_runner/test:1313:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:897:7)
Test failure: 'node_modules can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:627:1
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
1 !== 0
at TestContext.<anonymous> (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:637:10)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1313:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:897:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 1,
expected: 0,
operator: 'strictEqual',
diff: 'simple'
}
Test failure: 'mocked modules do not impact unmocked modules'
Location: test/parallel/test-runner-module-mocking.js:658:1
TypeError: mockedImpl.fn is not a function
at TestContext.<anonymous> (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-
|
|
aarch64-linux: with shared libraries:
test/test-runner/test-output-coverage-with-mock-cjs.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'TAP version 13\n' +
'# Subtest: subject calls dependency\n' +
+ 'not ok 1 - subject calls dependency\n' +
- 'ok 1 - subject calls dependency\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
+ " location: '<project-root>/test/fixtures/test-runner/output/coverage-with-mock-cjs.mjs:8:1'\n" +
+ " failureType: 'testCodeFailure'\n" +
+ " error: 'dependency is not a function'\n" +
+ " code: 'ERR_TEST_FAILURE'\n" +
+ " name: 'TypeError'\n" +
+ ' stack: |-\n' +
+ ' subject (file://<project-root>/test/fixtures/test-runner/coverage-with-mock/subject.mjs:4:10)\n' +
+ ' TestContext.<anonymous> (file://<project-root>/test/fixtures/test-runner/output/coverage-with-mock-cjs.mjs:9:24)\n' +
+ ' <node-internal-frames>\n' +
' ...\n' +
'1..1\n' +
'# tests 1\n' +
'# suites 0\n' +
+ '# pass 0\n' +
+ '# fail 1\n' +
- '# pass 1\n' +
- '# fail 0\n' +
'# cancelled 0\n' +
'# skipped 0\n' +
'# todo 0\n' +
'# duration_ms *\n' +
'# start of coverage report\n' +
...
'# output | | | |\n' +
+ '# coverage-with-mock-cjs.mjs | 100.00 | 100.00 | 50.00 |\n' +
- '# coverage-with-mock-cjs.mjs | 100.00 | 100.00 | 100.00 |\n' +
'# -------------------------------------------------------------------------------\n' +
+ '# all files | 100.00 | 100.00 | 66.67 |\n' +
- '# all files | 100.00 | 100.00 | 100.00 |\n' +
'# -------------------------------------------------------------------------------\n' +
'# end of coverage report\n'
at assertSnapshot (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/common/assertSnapshot.js:173:12)
at async spawnAndAssert (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/common/assertSnapshot.js:208:3)
at async file:///home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/test-runner/test-output-coverage-with-mock-cjs.mjs:10:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'TAP version 13\n' +
'# Subtest: subject calls dependency\n' +
'not ok 1 - subject calls dependency\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/coverage-with-mock-cjs.mjs:8:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'dependency is not a function'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
" name: 'TypeError'\n" +
' stack: |-\n' +
' subject (file://<project-root>/test/fixtures/test-runner/coverage-with-mock/subject.mjs:4:10)\n' +
' TestContext.<anonymous> (file://<project-root>/test/fixtures/test-runner/output/coverage-with-mock-cjs.mjs:9:24)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..1\n' +
'# tests 1\n' +
'# suites 0\n' +
'# pass 0\n' +
'# fail 1\n' +
'# cancelled 0\n' +
'# skipped 0\n' +
'# todo 0\n' +
'# duration_ms *\n' +
'# start of coverage report\n' +
'# -------------------------------------------------------------------------------\n' +
'# file | line % | branch % | funcs % | uncovered lines\n' +
'# -------------------------------------------------------------------------------\n' +
'# test | | | |\n' +
'# fixtures | | | |\n' +
'# test-runner | | | |\n' +
'# coverage-with-mock | | | |\n' +
'# subject.mjs | 100.00 | 100.00 | 100.00 |\n' +
'# output | | | |\n' +
'# coverage-with-mock-cjs.mjs | 100.00 | 100.00 | 5
|
|
x86_64-linux: with shared libraries
Process completed with exit code 2.
|
|
x86_64-linux: with shared libraries:
test/es-module/test-typescript.mjs#L249
--- stdout ---
Test failure: 'execute a TypeScript test mocking module'
Location: test/es-module/test-typescript.mjs:240:1
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /Hello, TypeScript-CommonJS!/. Input:
'Hello, TypeScript-Module!\n' +
'✖ logger (5.779718ms)\n' +
'ℹ tests 1\n' +
'ℹ suites 0\n' +
'ℹ pass 0\n' +
'ℹ fail 1\n' +
'ℹ cancelled 0\n' +
'ℹ skipped 0\n' +
'ℹ todo 0\n' +
'ℹ duration_ms 160.299412\n' +
'\n' +
'✖ failing tests:\n' +
'\n' +
'test at test/fixtures/typescript/ts/test-mock-module.ts:15:1\n' +
'✖ logger (5.779718ms)\n' +
' TypeError: mockedCommonjs is not a function\n' +
' at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/fixtures/typescript/ts/test-mock-module.ts:21:5)\n' +
' at async Test.run (node:internal/test_runner/test:1313:7)\n' +
' at async startSubtestAfterBootstrap (node:internal/test_runner/harness:385:3)\n'
at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/es-module/test-typescript.mjs:249:10)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1313:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:897:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'Hello, TypeScript-Module!\n' +
'✖ logger (5.779718ms)\n' +
'ℹ tests 1\n' +
'ℹ suites 0\n' +
'ℹ pass 0\n' +
'ℹ fail 1\n' +
'ℹ cancelled 0\n' +
'ℹ skipped 0\n' +
'ℹ todo 0\n' +
'ℹ duration_ms 160.299412\n' +
'...',
expected: /Hello, TypeScript-CommonJS!/,
operator: 'match',
diff: 'simple'
}
Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/es-module/test-typescript.mjs
|
|
x86_64-linux: with shared libraries:
test/test-runner/test-output-coverage-with-mock-cjs.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'TAP version 13\n' +
'# Subtest: subject calls dependency\n' +
+ 'not ok 1 - subject calls dependency\n' +
- 'ok 1 - subject calls dependency\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
+ " location: '<project-root>/test/fixtures/test-runner/output/coverage-with-mock-cjs.mjs:8:1'\n" +
+ " failureType: 'testCodeFailure'\n" +
+ " error: 'dependency is not a function'\n" +
+ " code: 'ERR_TEST_FAILURE'\n" +
+ " name: 'TypeError'\n" +
+ ' stack: |-\n' +
+ ' subject (file://<project-root>/test/fixtures/test-runner/coverage-with-mock/subject.mjs:4:10)\n' +
+ ' TestContext.<anonymous> (file://<project-root>/test/fixtures/test-runner/output/coverage-with-mock-cjs.mjs:9:24)\n' +
+ ' <node-internal-frames>\n' +
' ...\n' +
'1..1\n' +
'# tests 1\n' +
'# suites 0\n' +
+ '# pass 0\n' +
+ '# fail 1\n' +
- '# pass 1\n' +
- '# fail 0\n' +
'# cancelled 0\n' +
'# skipped 0\n' +
'# todo 0\n' +
'# duration_ms *\n' +
'# start of coverage report\n' +
...
'# output | | | |\n' +
+ '# coverage-with-mock-cjs.mjs | 100.00 | 100.00 | 50.00 |\n' +
- '# coverage-with-mock-cjs.mjs | 100.00 | 100.00 | 100.00 |\n' +
'# -------------------------------------------------------------------------------\n' +
+ '# all files | 100.00 | 100.00 | 66.67 |\n' +
- '# all files | 100.00 | 100.00 | 100.00 |\n' +
'# -------------------------------------------------------------------------------\n' +
'# end of coverage report\n'
at assertSnapshot (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/common/assertSnapshot.js:173:12)
at async spawnAndAssert (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/common/assertSnapshot.js:208:3)
at async file:///home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/test-runner/test-output-coverage-with-mock-cjs.mjs:10:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'TAP version 13\n' +
'# Subtest: subject calls dependency\n' +
'not ok 1 - subject calls dependency\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/coverage-with-mock-cjs.mjs:8:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'dependency is not a function'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
" name: 'TypeError'\n" +
' stack: |-\n' +
' subject (file://<project-root>/test/fixtures/test-runner/coverage-with-mock/subject.mjs:4:10)\n' +
' TestContext.<anonymous> (file://<project-root>/test/fixtures/test-runner/output/coverage-with-mock-cjs.mjs:9:24)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..1\n' +
'# tests 1\n' +
'# suites 0\n' +
'# pass 0\n' +
'# fail 1\n' +
'# cancelled 0\n' +
'# skipped 0\n' +
'# todo 0\n' +
'# duration_ms *\n' +
'# start of coverage report\n' +
'# -------------------------------------------------------------------------------\n' +
'# file | line % | branch % | funcs % | uncovered lines\n' +
'# -------------------------------------------------------------------------------\n' +
'# test | | | |\n' +
'# fixtures | | | |\n' +
'# test-runner | | | |\n' +
'# coverage-with-mock | | | |\n' +
'# subject.mjs | 100.00 | 100.00 | 100.00 |\n' +
'# output | | | |\n' +
'# coverage-with-mock-cjs.mjs | 100.00 | 100.00 | 5
|
|
x86_64-linux: with shared libraries:
test/parallel/test-runner-module-mocking.js#L559
--- stderr ---
(node:65751) ExperimentalWarning: Module mocking is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:65751) DeprecationWarning: mock.module(): options.namedExports is deprecated. Use options.exports instead.
(node:65751) DeprecationWarning: mock.module(): options.defaultExport is deprecated. Use options.exports.default instead.
--- stdout ---
Test failure: 'core module mocks can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:573:1
Error: Cannot find module 'node:readline?node-test-mock=5'
at node:internal/modules/cjs/loader:1492:15
at Object.cjsMockModuleLoad (node:internal/test_runner/mock/mock:913:16)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at loadCJSModuleWithModuleLoad (node:internal/modules/esm/translators:373:3)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:245:9)
at ModuleJob.run (node:internal/modules/esm/module_job:439:25)
at async node:internal/modules/esm/loader:656:26
at async assertCoreModuleMockWorksInBothModuleSystems (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:559:17)
at async TestContext.<anonymous> (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:574:3)
at async Test.run (node:internal/test_runner/test:1313:7) {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Test failure: 'node:- core module mocks can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:579:1
Error: Cannot find module 'node:readline?node-test-mock=7'
at node:internal/modules/cjs/loader:1492:15
at Object.cjsMockModuleLoad (node:internal/test_runner/mock/mock:913:16)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at loadCJSModuleWithModuleLoad (node:internal/modules/esm/translators:373:3)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:245:9)
at ModuleJob.run (node:internal/modules/esm/module_job:439:25)
at async node:internal/modules/esm/loader:656:26
at async assertCoreModuleMockWorksInBothModuleSystems (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:559:17)
at async TestContext.<anonymous> (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:580:3)
at async Test.run (node:internal/test_runner/test:1313:7) {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Test failure: 'CJS mocks can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:585:1
TypeError: esmImpl.fn is not a function
at TestContext.<anonymous> (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:594:30)
at async Test.run (node:internal/test_runner/test:1313:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:897:7)
Test failure: 'node_modules can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:627:1
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
1 !== 0
at TestContext.<anonymous> (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:637:10)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1313:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:897:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 1,
expected: 0,
operator: 'strictEqual',
diff: 'simple'
}
Test failure: 'mocked modules do not impact unmocked modules'
Location: test/parallel/test-runner-module-mocking.js:658:1
TypeError: mockedImpl.fn is not a function
at TestContext.<anonymous> (/home/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-
|
|
aarch64-darwin: with shared libraries
Process completed with exit code 2.
|
|
aarch64-darwin: with shared libraries:
test/parallel/test-watch-file-shared-dependency.mjs#L37
--- stdout ---
Mismatched <anonymous> function calls. Expected exactly 1, actual 2.
at Module.mustCall (/Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/common/index.js:466:10)
at TestContext.<anonymous> (file:///Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-watch-file-shared-dependency.mjs:37:34)
at Test.runInAsyncScope (node:async_hooks:226:14)
at Test.run (node:internal/test_runner/test:1293:21)
at Test.start (node:internal/test_runner/test:1177:17)
at node:internal/test_runner/test:1769:71
at node:internal/per_context/primordials:466:82
at new Promise (<anonymous>)
at new SafePromise (node:internal/per_context/primordials:435:3)
Command: out/Release/node --expose-internals --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-watch-file-shared-dependency.mjs
|
|
aarch64-darwin: with shared libraries:
test/parallel/test-runner-module-mocking.js#L559
--- stderr ---
(node:39169) ExperimentalWarning: Module mocking is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:39169) DeprecationWarning: mock.module(): options.namedExports is deprecated. Use options.exports instead.
(node:39169) DeprecationWarning: mock.module(): options.defaultExport is deprecated. Use options.exports.default instead.
--- stdout ---
Test failure: 'core module mocks can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:573:1
Error: Cannot find module 'node:readline?node-test-mock=5'
at node:internal/modules/cjs/loader:1492:15
at Object.cjsMockModuleLoad (node:internal/test_runner/mock/mock:913:16)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at loadCJSModuleWithModuleLoad (node:internal/modules/esm/translators:373:3)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:245:9)
at ModuleJob.run (node:internal/modules/esm/module_job:439:25)
at async node:internal/modules/esm/loader:656:26
at async assertCoreModuleMockWorksInBothModuleSystems (/Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:559:17)
at async TestContext.<anonymous> (/Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:574:3)
at async Test.run (node:internal/test_runner/test:1313:7) {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Test failure: 'node:- core module mocks can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:579:1
Error: Cannot find module 'node:readline?node-test-mock=7'
at node:internal/modules/cjs/loader:1492:15
at Object.cjsMockModuleLoad (node:internal/test_runner/mock/mock:913:16)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at loadCJSModuleWithModuleLoad (node:internal/modules/esm/translators:373:3)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:245:9)
at ModuleJob.run (node:internal/modules/esm/module_job:439:25)
at async node:internal/modules/esm/loader:656:26
at async assertCoreModuleMockWorksInBothModuleSystems (/Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:559:17)
at async TestContext.<anonymous> (/Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:580:3)
at async Test.run (node:internal/test_runner/test:1313:7) {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Test failure: 'CJS mocks can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:585:1
TypeError: esmImpl.fn is not a function
at TestContext.<anonymous> (/Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:594:30)
at async Test.run (node:internal/test_runner/test:1313:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:897:7)
Test failure: 'node_modules can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:627:1
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
1 !== 0
at TestContext.<anonymous> (/Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:637:10)
at async Test.run (node:internal/test_runner/test:1313:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:897:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 1,
expected: 0,
operator: 'strictEqual',
diff: 'simple'
}
Test failure: 'mocked modules do not impact unmocked modules'
Location: test/parallel/test-runner-module-mocking.js:658:1
TypeError: mockedImpl.fn is not a function
at TestContext.<anonymous> (/Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:667:33)
at async Test.r
|
|
x86_64-darwin: with shared libraries
Process completed with exit code 2.
|
|
x86_64-darwin: with shared libraries:
test/parallel/test-runner-module-mocking.js#L559
--- stderr ---
(node:57052) ExperimentalWarning: Module mocking is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:57052) DeprecationWarning: mock.module(): options.namedExports is deprecated. Use options.exports instead.
(node:57052) DeprecationWarning: mock.module(): options.defaultExport is deprecated. Use options.exports.default instead.
--- stdout ---
Test failure: 'core module mocks can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:573:1
Error: Cannot find module 'node:readline?node-test-mock=5'
at node:internal/modules/cjs/loader:1492:15
at Object.cjsMockModuleLoad (node:internal/test_runner/mock/mock:913:16)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at loadCJSModuleWithModuleLoad (node:internal/modules/esm/translators:373:3)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:245:9)
at ModuleJob.run (node:internal/modules/esm/module_job:439:25)
at async node:internal/modules/esm/loader:656:26
at async assertCoreModuleMockWorksInBothModuleSystems (/Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:559:17)
at async TestContext.<anonymous> (/Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:574:3)
at async Test.run (node:internal/test_runner/test:1313:7) {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Test failure: 'node:- core module mocks can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:579:1
Error: Cannot find module 'node:readline?node-test-mock=7'
at node:internal/modules/cjs/loader:1492:15
at Object.cjsMockModuleLoad (node:internal/test_runner/mock/mock:913:16)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at loadCJSModuleWithModuleLoad (node:internal/modules/esm/translators:373:3)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:245:9)
at ModuleJob.run (node:internal/modules/esm/module_job:439:25)
at async node:internal/modules/esm/loader:656:26
at async assertCoreModuleMockWorksInBothModuleSystems (/Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:559:17)
at async TestContext.<anonymous> (/Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:580:3)
at async Test.run (node:internal/test_runner/test:1313:7) {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Test failure: 'CJS mocks can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:585:1
TypeError: esmImpl.fn is not a function
at TestContext.<anonymous> (/Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:594:30)
at async Test.run (node:internal/test_runner/test:1313:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:897:7)
Test failure: 'node_modules can be used by both module systems'
Location: test/parallel/test-runner-module-mocking.js:627:1
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
1 !== 0
at TestContext.<anonymous> (/Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:637:10)
at async Test.run (node:internal/test_runner/test:1313:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:897:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 1,
expected: 0,
operator: 'strictEqual',
diff: 'simple'
}
Test failure: 'mocked modules do not impact unmocked modules'
Location: test/parallel/test-runner-module-mocking.js:658:1
TypeError: mockedImpl.fn is not a function
at TestContext.<anonymous> (/Users/runner/work/_temp/node-v26.0.0-nightly2026-04-237d68a9568d-slim/test/parallel/test-runner-module-mocking.js:667:33)
at async Test.r
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
tarballs
|
50.3 MB |
sha256:e89ec615219111dbe67b7c0ad2acc017b173c313f8dc3fa88a1230a588ade0cd
|
|