From 866ed6a8873fee12ac9638b1e37d9f2c065e76a2 Mon Sep 17 00:00:00 2001 From: Chemi Atlow Date: Mon, 15 May 2023 08:23:22 +0300 Subject: [PATCH] test_runner: add shorthands to `test` PR-URL: https://github.com/nodejs/node/pull/47909 Fixes: https://github.com/nodejs/node/issues/47897 Reviewed-By: Moshe Atlow --- doc/api/test.md | 18 +++++++++ lib/internal/test_runner/harness.js | 8 +--- .../fixtures/test-runner/output/only_tests.js | 18 +++++++++ .../test-runner/output/only_tests.snapshot | 38 +++++++++++++++++-- 4 files changed, 72 insertions(+), 10 deletions(-) diff --git a/doc/api/test.md b/doc/api/test.md index fa0be170895910..dd9cbfb03e0062 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -770,6 +770,9 @@ run({ files: [path.resolve('./tests/test.js')] })