You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your additional module file [mymodule.js] does not appear to pass back an
error received from fs.readdir(). Use the following idiomatic Node.js
pattern inside your callback to fs.readdir(): if (err) return
callback(err)
# FAIL Your solution to MAKE IT MODULAR didn't pass. Try again!
Hello! I noticed a potential issue in the "Make it Modular" exercise. When importing
readdir
using a named import like this:I get the following error:
However, if I use default imports like this:
It verifies correctly. I think this may be due to how you're mocking
fs.readdir
.Not sure what the more flexible fix would be, but I'd be happy to help if you point me in the right direction!
The text was updated successfully, but these errors were encountered: