tests/claude-code: add rules tests
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
9bf54edf10
commit
bb35f07cc9
5 changed files with 54 additions and 0 deletions
14
tests/modules/programs/claude-code/rules-dir.nix
Normal file
14
tests/modules/programs/claude-code/rules-dir.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
programs.claude-code = {
|
||||
enable = true;
|
||||
rulesDir = ./rules;
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.claude/rules/test-rule.md
|
||||
assertLinkExists home-files/.claude/rules/test-rule.md
|
||||
assertFileContent \
|
||||
home-files/.claude/rules/test-rule.md \
|
||||
${./rules/test-rule.md}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue