From 8e7dda14b3101d0aa13312dbd57fd629e5ca098c Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 12 Jul 2022 20:25:13 +0200 Subject: [PATCH] skip tet on Windows --- test/parallel/test-startup-empty-regexp-statics.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-startup-empty-regexp-statics.mjs b/test/parallel/test-startup-empty-regexp-statics.mjs index 20fd9d464d67e6..005fa86c6579f0 100644 --- a/test/parallel/test-startup-empty-regexp-statics.mjs +++ b/test/parallel/test-startup-empty-regexp-statics.mjs @@ -1,10 +1,13 @@ // We must load the CJS version here because the ESM wrapper call `hasIPv6` // which compiles a RegEx. // eslint-disable-next-line node-core/require-common-first -import '../common/index.js'; +import common from '../common/index.js'; import assert from 'node:assert'; +// TODO(aduh95): make this test pass on Windows. +if (common.isWindows) common.skip('Test fails on Windows'); + assert.strictEqual(RegExp.$_, ''); assert.strictEqual(RegExp.$0, undefined); assert.strictEqual(RegExp.$1, '');