Skip to content

Commit

Permalink
template: Add om tests
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 8, 2024
1 parent 5abfbed commit c05c997
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions nix/modules/template.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,24 @@
value = false;
}
];
tests = {
default = {
params = {
package-name = "foo";
author = "John";
vscode = false;
};
asserts = {
source = {
".github/workflows/ci.yaml" = true;
".vscode" = false;
};
packages.default = {
"bin/foo" = true;
};
};
};
};
};
};
}

0 comments on commit c05c997

Please sign in to comment.