tests/opencode: expand tests for agents / commands
Include various tests for the agents and command file generation and different ways of configuring it. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
c104ee92bf
commit
53538044d9
12 changed files with 160 additions and 0 deletions
13
tests/modules/programs/opencode/agents-path.nix
Normal file
13
tests/modules/programs/opencode/agents-path.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
programs.opencode = {
|
||||
enable = true;
|
||||
agents = {
|
||||
test-agent = ./test-agent.md;
|
||||
};
|
||||
};
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/opencode/agent/test-agent.md
|
||||
assertFileContent home-files/.config/opencode/agent/test-agent.md \
|
||||
${./test-agent.md}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue