Merge pull request #907 from vsumner/pr-skill-cleanup
test: stabilize non-interactive env hook
This commit is contained in:
commit
c9f893b740
@ -12,12 +12,15 @@ describe("non-interactive-env hook", () => {
|
|||||||
originalEnv = {
|
originalEnv = {
|
||||||
SHELL: process.env.SHELL,
|
SHELL: process.env.SHELL,
|
||||||
PSModulePath: process.env.PSModulePath,
|
PSModulePath: process.env.PSModulePath,
|
||||||
|
CI: process.env.CI,
|
||||||
|
OPENCODE_NON_INTERACTIVE: process.env.OPENCODE_NON_INTERACTIVE,
|
||||||
}
|
}
|
||||||
// #given clean Unix-like environment for all tests
|
// #given clean Unix-like environment for all tests
|
||||||
// This prevents CI environments (which may have PSModulePath set) from
|
// This prevents CI environments (which may have PSModulePath set) from
|
||||||
// triggering PowerShell detection in tests that expect Unix behavior
|
// triggering PowerShell detection in tests that expect Unix behavior
|
||||||
delete process.env.PSModulePath
|
delete process.env.PSModulePath
|
||||||
process.env.SHELL = "/bin/bash"
|
process.env.SHELL = "/bin/bash"
|
||||||
|
process.env.OPENCODE_NON_INTERACTIVE = "true"
|
||||||
})
|
})
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user