Skip to content

Commit

Permalink
Merge pull request #317 from hypothesis/fix-test-watch
Browse files Browse the repository at this point in the history
Change `tests` option from `--watch` to `--live` to avoid node conflict
  • Loading branch information
lyzadanger authored May 16, 2023
2 parents bf5e425 + 587f841 commit 3aa4e5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <file pattern>` CLI argument. If the `--watch` CLI flag is
by using the `--grep <file pattern>` 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.
Expand Down
6 changes: 3 additions & 3 deletions lib/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export async function runTests({
'--grep <pattern>',
'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.
Expand Down

0 comments on commit 3aa4e5e

Please sign in to comment.