mirror of
https://github.com/denoland/deno.git
synced 2024-10-29 08:58:01 -04:00
test(cli): add test case for 'deno test --watch' (#11434)
This commit is contained in:
parent
55632266e9
commit
65a1724acb
1 changed files with 23 additions and 0 deletions
23
cli/flags.rs
23
cli/flags.rs
|
@ -3474,6 +3474,29 @@ mod tests {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_watch() {
|
||||
let r = flags_from_vec(svec!["deno", "test", "--watch"]);
|
||||
assert_eq!(
|
||||
r.unwrap(),
|
||||
Flags {
|
||||
subcommand: DenoSubcommand::Test {
|
||||
no_run: false,
|
||||
doc: false,
|
||||
fail_fast: None,
|
||||
filter: None,
|
||||
allow_none: false,
|
||||
quiet: false,
|
||||
shuffle: None,
|
||||
include: None,
|
||||
concurrent_jobs: 1,
|
||||
},
|
||||
watch: true,
|
||||
..Flags::default()
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn bundle_with_cafile() {
|
||||
let r = flags_from_vec(svec![
|
||||
|
|
Loading…
Reference in a new issue