test: invalid package.json causes error when require()ing in directory
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test
Description of change
Requiring a file from a directory that contains an invalid package.json file should throw an error.