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!