Skip to content

Commit 4cbc589

Browse files
test: skip --watch NODE_OPTIONS test without NODE_OPTIONS support
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
1 parent 15f91f9 commit 4cbc589

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/sequential/test-watch-mode.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,10 @@ process.on('message', (message) => {
957957
}
958958
});
959959

960-
it('should not strip --watch when it appears inside a quoted NODE_OPTIONS value', async () => {
960+
it('should not strip --watch when it appears inside a quoted NODE_OPTIONS value', {
961+
// Honoring --require from NODE_OPTIONS is required for this test.
962+
skip: !!process.config.variables.node_without_node_options,
963+
}, async () => {
961964
// Use /tmp to avoid CI directories with special characters (e.g. ")
962965
// that would break NODE_OPTIONS parsing.
963966
const watchDir = path.join(os.tmpdir(), 'test for --watch parsing');

0 commit comments

Comments
 (0)