Skip to content

test_runner: add exports option to mock.module #82418

test_runner: add exports option to mock.module

test_runner: add exports option to mock.module #82418

Triggered via pull request March 20, 2026 12:29
Status Failure
Total duration 1h 1m 26s
Artifacts

test-linux.yml

on: pull_request
Matrix: test-linux
Fit to window
Zoom out
Zoom in

Annotations

4 errors, 2 warnings, and 2 notices
test-linux (ubuntu-24.04-arm)
Process completed with exit code 2.
test-linux (ubuntu-24.04-arm): 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' + 'ok 1 - subject calls dependency\n' + ' ---\n' + ' duration_ms: *\n' + ... '# -------------------------------------------------------------------------------\n' + + '# end of coverage report\n' + + '(node:<pid>) DeprecationWarning: mock.module(): options.namedExports is deprecated. Use options.exports instead.\n' + + '(Use `<node-exe> --trace-deprecation ...` to show where the warning was created)\n' - '# end of coverage report\n' at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12) at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208:3) at async file:///home/runner/work/node/node/node/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' + 'ok 1 - subject calls dependency\n' + ' ---\n' + ' duration_ms: *\n' + " type: 'test'\n" + ' ...\n' + '1..1\n' + '# tests 1\n' + '# suites 0\n' + '# pass 1\n' + '# fail 0\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 | 100.00 |\n' + '# -------------------------------------------------------------------------------\n' + '# all files | 100.00 | 100.00 | 100.00 |\n' + '# -------------------------------------------------------------------------------\n' + '# end of coverage report\n' + '(node:<pid>) DeprecationWarning: mock.module(): options.namedExports is deprecated. Use options.exports instead.\n' + '(Use `<node-exe> --trace-deprecation ...` to show where the warning was created)\n', expected: 'TAP version 13\n' + '# Subtest: subject calls dependency\n' + 'ok 1 - subject calls dependency\n' + ' ---\n' + ' duration_ms: *\n' + " type: 'test'\n" + ' ...\n' + '1..1\n' + '# tests 1\n' + '# suites 0\n' + '# pass 1\n' + '# fail 0\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 | 100.00 |\n' + '# -------------------------------------------
test-linux (ubuntu-24.04)
Process completed with exit code 2.
test-linux (ubuntu-24.04): 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' + 'ok 1 - subject calls dependency\n' + ' ---\n' + ' duration_ms: *\n' + ... '# -------------------------------------------------------------------------------\n' + + '# end of coverage report\n' + + '(node:<pid>) DeprecationWarning: mock.module(): options.namedExports is deprecated. Use options.exports instead.\n' + + '(Use `<node-exe> --trace-deprecation ...` to show where the warning was created)\n' - '# end of coverage report\n' at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12) at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208:3) at async file:///home/runner/work/node/node/node/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' + 'ok 1 - subject calls dependency\n' + ' ---\n' + ' duration_ms: *\n' + " type: 'test'\n" + ' ...\n' + '1..1\n' + '# tests 1\n' + '# suites 0\n' + '# pass 1\n' + '# fail 0\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 | 100.00 |\n' + '# -------------------------------------------------------------------------------\n' + '# all files | 100.00 | 100.00 | 100.00 |\n' + '# -------------------------------------------------------------------------------\n' + '# end of coverage report\n' + '(node:<pid>) DeprecationWarning: mock.module(): options.namedExports is deprecated. Use options.exports instead.\n' + '(Use `<node-exe> --trace-deprecation ...` to show where the warning was created)\n', expected: 'TAP version 13\n' + '# Subtest: subject calls dependency\n' + 'ok 1 - subject calls dependency\n' + ' ---\n' + ' duration_ms: *\n' + " type: 'test'\n" + ' ...\n' + '1..1\n' + '# tests 1\n' + '# suites 0\n' + '# pass 1\n' + '# fail 0\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 | 100.00 |\n' + '# -------------------------------------------
test-linux (ubuntu-24.04-arm)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test-linux (ubuntu-24.04)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
sccache stats
60% - 2909 hits, 1951 misses, 0 errors
sccache stats
63% - 3056 hits, 1791 misses, 0 errors