Skip to content

Commit

Permalink
modules/test: hide the deprecated check* options
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Dec 27, 2024
1 parent 60e88b8 commit fc9176c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/top-level/test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,19 @@ in

checkWarnings = lib.mkOption {
type = lib.types.bool;
description = "Whether to check `config.warnings` in the test.";
description = "Whether to check `config.warnings` in the test. (deprecated)";
apply = x: lib.warnIfNot x "`test.checkWarnings = false` is replaced with `test.warnings = [ ]`." x;
default = true;
visible = false;
};

checkAssertions = lib.mkOption {
type = lib.types.bool;
description = "Whether to check `config.assertions` in the test.";
description = "Whether to check `config.assertions` in the test. (deprecated)";
apply =
x: lib.warnIfNot x "`test.checkAssertions = false` is replaced with `test.assertions = [ ]`." x;
default = true;
visible = false;
};

warnings = lib.mkOption {
Expand Down

0 comments on commit fc9176c

Please sign in to comment.