Skip to content

Commit

Permalink
Clarify that ENOENT handling is potentially specific to Testdouble.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sgravrock committed Jul 15, 2023
1 parent 097bb29 commit 882bd5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runner_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 882bd5a

Please sign in to comment.