Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change tests option from --watch to --live to avoid node conflict #317

Merged
merged 1 commit into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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