Skip to content

Commit 76564a3

Browse files
committed
tools: enable linter in test/fixtures/test\-runner/output
nodejs/node#57698
1 parent cfb2144 commit 76564a3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

patches/node/ci_ensure_node_tests_set_electron_run_as_node.patch

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ diff --git a/test/fixtures/test-runner/output/arbitrary-output-colored.js b/test
1111
index af23e674cb361ed81dafa22670d5633559cd1144..1dd59990cb7cdba8aecf4f499ee6b92e7cd41b30 100644
1212
--- a/test/fixtures/test-runner/output/arbitrary-output-colored.js
1313
+++ b/test/fixtures/test-runner/output/arbitrary-output-colored.js
14-
@@ -7,6 +7,6 @@ const fixtures = require('../../../common/fixtures');
14+
@@ -7,9 +7,9 @@ const fixtures = require('../../../common/fixtures');
1515
(async function run() {
1616
const test = fixtures.path('test-runner/output/arbitrary-output-colored-1.js');
1717
const reset = fixtures.path('test-runner/output/reset-color-depth.js');
1818
- await once(spawn(process.execPath, ['-r', reset, '--test', test], { stdio: 'inherit' }), 'exit');
19-
- await once(spawn(process.execPath, ['-r', reset, '--test', '--test-reporter', 'tap', test], { stdio: 'inherit' }), 'exit');
2019
+ await once(spawn(process.execPath, ['-r', reset, '--test', test], { stdio: 'inherit', env: { ELECTRON_RUN_AS_NODE: 1 }}), 'exit');
21-
+ await once(spawn(process.execPath, ['-r', reset, '--test', '--test-reporter', 'tap', test], { stdio: 'inherit', env: { ELECTRON_RUN_AS_NODE: 1 } }), 'exit');
20+
await once(
21+
- spawn(process.execPath, ['-r', reset, '--test', '--test-reporter', 'tap', test], { stdio: 'inherit' }),
22+
+ spawn(process.execPath, ['-r', reset, '--test', '--test-reporter', 'tap', test], { stdio: 'inherit', env: { ELECTRON_RUN_AS_NODE: 1 }}),
23+
'exit',
24+
);
2225
})().then(common.mustCall());
26+

0 commit comments

Comments
 (0)