mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-30 05:01:53 +00:00
test(opencode): use native config path in permission assertion (#45849)
Co-authored-by: Hona <10430890+Hona@users.noreply.github.com>
This commit is contained in:
parent
733562e92a
commit
c2e39bb556
1 changed files with 1 additions and 1 deletions
|
|
@ -573,7 +573,7 @@ it.effect("rejects native project permissions even with inherited V1 rules", ()
|
|||
if (Exit.isFailure(exit))
|
||||
expect(Cause.squash(exit.cause)).toMatchObject({
|
||||
data: {
|
||||
path: expect.stringContaining("project/opencode.json"),
|
||||
path: expect.stringContaining(path.join("project", "opencode.json")),
|
||||
issues: [
|
||||
{ path: ["permissions"], message: expect.stringContaining('Use V1 "permission" rules or run opencode2') },
|
||||
{ path: ["agents", "reviewer", "permissions"], message: expect.stringContaining("not supported") },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue