(options)
| 30 | assert.strictEqual(typeof USE_MAIN_CONTEXT_DEFAULT_LOADER, 'symbol'); |
| 31 | |
| 32 | async function testNotFoundErrors(options) { |
| 33 | // Import user modules. |
| 34 | const script = new Script('import("./message.mjs")', options); |
| 35 | // Use try-catch for better async stack traces in the logs. |
| 36 | await assert.rejects(script.runInThisContext(), { code: 'ERR_MODULE_NOT_FOUND' }); |
| 37 | |
| 38 | const imported = compileFunction('return import("./message.mjs")', [], options)(); |
| 39 | // Use try-catch for better async stack traces in the logs. |
| 40 | await assert.rejects(imported, { code: 'ERR_MODULE_NOT_FOUND' }); |
| 41 | } |
| 42 | |
| 43 | async function testLoader(options) { |
| 44 | { |
no test coverage detected
searching dependent graphs…