diff --git a/packages/ptc-runtime/ptc-runtime-node/tests/persistent-process.spec.ts b/packages/ptc-runtime/ptc-runtime-node/tests/persistent-process.spec.ts index d7312f55bd..882cdfc8b5 100644 --- a/packages/ptc-runtime/ptc-runtime-node/tests/persistent-process.spec.ts +++ b/packages/ptc-runtime/ptc-runtime-node/tests/persistent-process.spec.ts @@ -47,11 +47,11 @@ it('keeps an injected process local to the REPL while it runs and after it close const descriptor = Object.getOwnPropertyDescriptor(globalThis, 'process')! try { const h = await setup() - expect(globalThis.process).toBe(hostProcess) + expect(globalThis.process === hostProcess).toBe(true) expect(decodePtcJsonWire((await h.run('Object.keys(process.env)')).value)).toEqual([]) - expect(globalThis.process).toBe(hostProcess) + expect(globalThis.process === hostProcess).toBe(true) await h.close() - expect(globalThis.process).toBe(hostProcess) + expect(globalThis.process === hostProcess).toBe(true) } finally { Object.defineProperty(globalThis, 'process', descriptor) }