From 882bd5af9fe9f40cd84eb3129dd3e0c2c6c073d1 Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Sat, 1 Jul 2023 16:31:29 -0700 Subject: [PATCH] Clarify that ENOENT handling is potentially specific to Testdouble.js --- lib/runner_base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runner_base.js b/lib/runner_base.js index bafa12e..85e7cc6 100644 --- a/lib/runner_base.js +++ b/lib/runner_base.js @@ -84,7 +84,7 @@ class RunnerBase { } catch (e) { if (e.code !== 'MODULE_NOT_FOUND' // CommonJS && e.code !== 'ERR_MODULE_NOT_FOUND' // ESM - && e.code !== 'ENOENT') { // ESM w/custom loader + && e.code !== 'ENOENT') { // Testdouble.js, maybe other ESM loaders too throw e; } }