Skip to content

Commit 2ea74af

Browse files
committed
test: refactor test-node-output-errors
nodejs/node#48992
1 parent 92c5892 commit 2ea74af

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

patches/node/ci_ensure_node_tests_set_electron_run_as_node.patch

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ index 5a1b9feb6c8bedb50b89f5c4f3c5983455bb042d..efca7811dc0b6a590c5ee023c7180170
4747
});
4848
}
4949
diff --git a/test/parallel/test-node-output-errors.mjs b/test/parallel/test-node-output-errors.mjs
50-
index fca2149fea32123dc4d4c6f21c64cc3c583454b3..b9a55fb7ea22e62553f69bd035797f7aaee1fc38 100644
50+
index 4c4fc08c0cf3828d11aefe9f12318001bf10c16d..b08bcd40cdf26093e158c0bb9ae566c76f2c731e 100644
5151
--- a/test/parallel/test-node-output-errors.mjs
5252
+++ b/test/parallel/test-node-output-errors.mjs
53-
@@ -53,6 +53,7 @@ describe('errors output', { concurrency: true }, () => {
54-
!skipForceColors ? { name: 'errors/force_colors.js', env: { FORCE_COLOR: 1 } } : null,
55-
].filter(Boolean);
56-
for (const { name, transform, env } of tests) {
57-
+ if (env) env.ELECTRON_RUN_AS_NODE = 1;
58-
it(name, async () => {
59-
await snapshot.spawnAndAssert(fixtures.path(name), transform ?? defaultTransform, { env });
53+
@@ -61,6 +61,7 @@ describe('errors output', { concurrency: true }, () => {
54+
];
55+
for (const { name, transform = defaultTransform, env, skip = false } of tests) {
56+
it(name, { skip }, async () => {
57+
+ if (env) env.ELECTRON_RUN_AS_NODE = 1;
58+
await snapshot.spawnAndAssert(fixtures.path(name), transform, { env });
6059
});
60+
}

0 commit comments

Comments
 (0)