Skip to content

Commit 985efc7

Browse files
committed
add modify-extensions test
1 parent 5c1fc9d commit 985efc7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,3 +259,10 @@ test('should allow graceful shutdowns', function (t) {
259259
}
260260
});
261261
});
262+
263+
test('should be resistant to breaking `require.extensions`', function (t) {
264+
spawn('modify-extensions.js', function (out) {
265+
t.notOk(/TypeError/.test(out));
266+
});
267+
setTimeout(t.end.bind(t), 500);
268+
});

0 commit comments

Comments
 (0)