From 486acaf41aa632a2672722f62bc4edfa55a2931c Mon Sep 17 00:00:00 2001 From: Anish Karandikar Date: Sun, 2 Jun 2019 01:21:36 -0700 Subject: [PATCH] Document timeout units --- docs/05-command-line.md | 2 +- lib/cli.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/05-command-line.md b/docs/05-command-line.md index c3a2d7994..e805bf2e7 100644 --- a/docs/05-command-line.md +++ b/docs/05-command-line.md @@ -13,7 +13,7 @@ $ npx ava --help --match, -m Only run tests with matching title (Can be repeated) --update-snapshots, -u Update snapshots --fail-fast Stop after first test failure - --timeout, -T Set global timeout + --timeout, -T Set global timeout (milliseconds or human-readable, e.g. 10s, 2m) --serial, -s Run tests serially --concurrency, -c Max number of test files running at the same time (Default: CPU cores) --verbose, -v Enable verbose output diff --git a/lib/cli.js b/lib/cli.js index de2946049..f94aa34da 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -35,7 +35,7 @@ exports.run = async () => { // eslint-disable-line complexity --match, -m Only run tests with matching title (Can be repeated) --update-snapshots, -u Update snapshots --fail-fast Stop after first test failure - --timeout, -T Set global timeout + --timeout, -T Set global timeout (milliseconds or human-readable, e.g. 10s, 2m) --serial, -s Run tests serially --concurrency, -c Max number of test files running at the same time (Default: CPU cores) --verbose, -v Enable verbose output