test: add module require tests for certain package.json errors
test for unusual error cases: verify that module require falls back to index if package.json names a missing file and throws an error if package.json is unparseable.
Checklist
-
make -j4 test
(UNIX) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines