test(cli): allow spying on the isolated replacement API

This commit is contained in:
Brennan Benson
2026-11-13 19:16:31 -08:00
parent 0e36675e69
commit f20573976c
@@ -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')
})