summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/args/flags.rs2
-rw-r--r--tests/specs/lockfile/frozen_lockfile/__test__.jsonc13
2 files changed, 15 insertions, 0 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs
index cb3d55e50..5c2f83561 100644
--- a/cli/args/flags.rs
+++ b/cli/args/flags.rs
@@ -1856,6 +1856,7 @@ Unless --reload is specified, this command will not re-download already cached d
.required_unless_present("help")
.value_hint(ValueHint::FilePath),
)
+ .arg(frozen_lockfile_arg())
.arg(allow_import_arg())
}
)
@@ -4373,6 +4374,7 @@ fn check_parse(
flags.type_check_mode = TypeCheckMode::Local;
compile_args_without_check_parse(flags, matches)?;
unstable_args_parse(flags, matches, UnstableArgsConfig::ResolutionAndRuntime);
+ frozen_lockfile_arg_parse(flags, matches);
let files = matches.remove_many::<String>("file").unwrap().collect();
if matches.get_flag("all") || matches.get_flag("remote") {
flags.type_check_mode = TypeCheckMode::All;
diff --git a/tests/specs/lockfile/frozen_lockfile/__test__.jsonc b/tests/specs/lockfile/frozen_lockfile/__test__.jsonc
index 7a7b9c233..07ec2c4c1 100644
--- a/tests/specs/lockfile/frozen_lockfile/__test__.jsonc
+++ b/tests/specs/lockfile/frozen_lockfile/__test__.jsonc
@@ -183,6 +183,19 @@
"exitCode": 1
}
]
+ },
+ "check_subcommand": {
+ "steps": [
+ {
+ "args": "check --frozen=true add.ts",
+ "output": "[WILDCARD]The lockfile is out of date[WILDCARD]",
+ "exitCode": 1
+ },
+ {
+ "args": "check --frozen=false add.ts",
+ "output": "[WILDCARD]Check [WILDCARD]add.ts\n"
+ }
+ ]
}
}
}