diff --git a/packages/server/src/jsRunner/tests/isolatedVM.spec.ts b/packages/server/src/jsRunner/tests/isolatedVM.spec.ts index 9bf79c6040..63a1a52b09 100644 --- a/packages/server/src/jsRunner/tests/isolatedVM.spec.ts +++ b/packages/server/src/jsRunner/tests/isolatedVM.spec.ts @@ -112,10 +112,10 @@ describe("Test isolated vm directly", () => { const context = {} // throw error // Ensure the first execution throws an error - expect(() => runJSWithIsolatedVM(`test.foo.bar = 123`, context)).toThrow(); + expect(() => runJSWithIsolatedVM(`test.foo.bar = 123`, context)).toThrow() // Ensure the error is not persisted across VMs - const secondResult = runJSWithIsolatedVM(`return {}`, context); + const secondResult = runJSWithIsolatedVM(`return {}`, context) expect(secondResult).toEqual({}) }) })