mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
refactor(flags): move watch flags into subcommand structs (#19516)
Moves the watch setting out of the `Flags` struct and into the individual subcommands
This commit is contained in:
parent
b2e546e530
commit
fa63fd4610
10 changed files with 248 additions and 120 deletions
|
@ -385,6 +385,7 @@ async fn fmt_watch_test() {
|
|||
wait_contains("Checked", &mut stderr_lines).await,
|
||||
"Checked 1 file"
|
||||
);
|
||||
wait_contains("Fmt finished", &mut stderr_lines).await;
|
||||
|
||||
let expected = std::fs::read_to_string(fixed.clone()).unwrap();
|
||||
let actual = std::fs::read_to_string(badly_formatted.clone()).unwrap();
|
||||
|
@ -401,6 +402,7 @@ async fn fmt_watch_test() {
|
|||
wait_contains("Checked", &mut stderr_lines).await,
|
||||
"Checked 1 file"
|
||||
);
|
||||
wait_contains("Fmt finished", &mut stderr_lines).await;
|
||||
|
||||
// Check if file has been automatically formatted by watcher
|
||||
let expected = std::fs::read_to_string(fixed).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue