We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1b4c5d commit a7c9c56Copy full SHA for a7c9c56
test/parallel/test-require-invalid-package.js
@@ -0,0 +1,9 @@
1
+'use strict';
2
+
3
+require('../common');
4
+const assert = require('assert');
5
6
+// Should be an invalid package path.
7
+assert.throws(() => require('package.json'), (err) => {
8
+ return err && err.code === 'MODULE_NOT_FOUND';
9
+});
0 commit comments