-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Labels
ibm iIssues and PRs related to the IBM i platform.Issues and PRs related to the IBM i platform.testIssues and PRs related to the tests.Issues and PRs related to the tests.
Description
Ref:
The test result does not give a detailed error message so here is the output from a console run
$ ./out/Release/node test/parallel/test-module-loading-error.js
node:assert:635
throw err;
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
Comparison {
+ code: 'MODULE_NOT_FOUND'
- code: 'ERR_INVALID_PACKAGE_CONFIG'
}
at Object.<anonymous> (~/test/parallel/test-module-loading-error.js:90:8)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: Error: Cannot find module '../fixtures/packages/is-dir'
Require stack:
- ~/test/parallel/test-module-loading-error.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
at Module._load (node:internal/modules/cjs/loader:901:27)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:119:18)
at assert.throws.common.isAIX.code (~/test/parallel/test-module-loading-error.js:91:11)
at getActual (node:assert:756:5)
at Function.throws (node:assert:902:24)
at Object.<anonymous> (~/test/parallel/test-module-loading-error.js:90:8)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'~/test/parallel/test-module-loading-error.js'
]
},
expected: { code: 'ERR_INVALID_PACKAGE_CONFIG' },
operator: 'throws'
}
Metadata
Metadata
Assignees
Labels
ibm iIssues and PRs related to the IBM i platform.Issues and PRs related to the IBM i platform.testIssues and PRs related to the tests.Issues and PRs related to the tests.