1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

test(cli): add test case for 'deno test --watch' (#11434)

This commit is contained in:
Yoshiya Hinosawa 2021-07-20 18:29:17 +09:00 committed by GitHub
parent 55632266e9
commit 65a1724acb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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![