mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 10:27:33 +00:00
test(cli): allow spying on the isolated replacement API
This commit is contained in:
@@ -13,6 +13,7 @@ const execve = Object.getOwnPropertyDescriptor(process, 'execve')
|
||||
beforeEach(() => {
|
||||
Object.defineProperty(process, 'execve', {
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: vi.fn(() => {
|
||||
throw new Error('Unexpected native replacement')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user