mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-21 05:23:31 +00:00
test(core): avoid shell PATH in command test (#34980)
This commit is contained in:
parent
967c44552e
commit
c9604c86ec
1 changed files with 2 additions and 2 deletions
|
|
@ -69,11 +69,11 @@ describe("CommandV2", () => {
|
|||
const command = yield* CommandV2.Service
|
||||
yield* command.transform((editor) => {
|
||||
editor.update("review", (command) => {
|
||||
command.template = "Output: !`bun -e \"process.stdout.write('command-output')\"`"
|
||||
command.template = "Output: !`echo command-output`"
|
||||
})
|
||||
})
|
||||
|
||||
expect(yield* command.evaluate({ name: "review" })).toEqual({ text: "Output: command-output" })
|
||||
expect((yield* command.evaluate({ name: "review" })).text.replace(/\r?\n$/, "")).toEqual("Output: command-output")
|
||||
}),
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue