-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quibble doesn't throw when file can't be found #64
Comments
- Fixes testdouble#64
I don't think this is a bug. If you see this test of non-ESM, quibble has always supported faking non-existent paths |
I found it quite confusing and it cost me some time only understanding that it wouldn't throw. Maybe, would you be willing to allow the esm function to throw if a special input is passed. Or maybe a Otherwise, maybe making people more aware in the readme could help too. |
I understand your point, but because this is a mature/stable/low-config library I would not support a new option for branching behavior like this. Happy to look at a PR that warns replacing paths to non-existent files is supported, however |
when you run
node index.mjs
it just returnsundefined
. My expectation is that it should throw.The text was updated successfully, but these errors were encountered: