diff --git a/README.md b/README.md index 0a8b170..2cf8fd4 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ Rollup. Once the bundle has been generated, Karma is started using the config file specified by `karmaConfig`, which should load the test bundle. This command supports filtering which tests are run -by using the `--grep ` CLI argument. If the `--watch` CLI flag is +by using the `--grep ` CLI argument. If the `--live` CLI flag is set, the test runner watches for changes and rebuild and re-runs the tests if the input files change. diff --git a/lib/tests.js b/lib/tests.js index 2679a8b..7c45af9 100644 --- a/lib/tests.js +++ b/lib/tests.js @@ -34,11 +34,11 @@ export async function runTests({ '--grep ', 'Run only tests where filename matches a regex pattern' ) - .option('--watch', 'Continuously run tests (default: false)', false) + .option('--live', 'Continuously run tests (default: false)', false) .parse(process.argv); - const { grep, watch } = program.opts(); - const singleRun = !watch; + const { grep, live } = program.opts(); + const singleRun = !live; // Generate an entry file for the test bundle. This imports all the test // modules, filtered by the pattern specified by the `--grep` CLI option.