Skip to content

Commit c2491a1

Browse files
cjihrigehsankhfr
authored andcommitted
test_runner: remove plan option from run()
This commit removes the plan option to run(). I believe it was added by mistake. It is not documented, untested, and a test plan does not make sense in the context of run(). This commit also fixes a minor formatting issue in a related fixture. Refs: nodejs#52860 PR-URL: nodejs#53834 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent 4b33b19 commit c2491a1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/internal/test_runner/runner.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,6 @@ function run(options = kEmptyObject) {
483483
watch,
484484
setup,
485485
only,
486-
plan,
487486
} = options;
488487

489488
if (files != null) {
@@ -552,7 +551,7 @@ function run(options = kEmptyObject) {
552551
});
553552
}
554553

555-
const root = createTestTree({ __proto__: null, concurrency, timeout, signal, plan });
554+
const root = createTestTree({ __proto__: null, concurrency, timeout, signal });
556555
root.harness.shouldColorizeTestFiles ||= shouldColorizeTestFiles(root);
557556

558557
if (process.env.NODE_TEST_CONTEXT !== undefined) {

test/fixtures/test-runner/output/test-runner-plan.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ test('planning with streams', (t, done) => {
7474
});
7575

7676
stream.on('end', () => {
77-
done();
77+
done();
7878
});
7979
})

0 commit comments

Comments
 (0)