Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf6c3310

Browse files
committed
test: refactortest-node-output-errors
nodejs/node#48992
1 parentf13c35e commitf6c3310

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-
indexfca2149fea32123dc4d4c6f21c64cc3c583454b3..b9a55fb7ea22e62553f69bd035797f7aaee1fc38 100644
50+
index4c4fc08c0cf3828d11aefe9f12318001bf10c16d..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)

[8]ページ先頭

©2009-2025 Movatter.jp