1 2 3 4 5 6 7 8
test("basic update expression", () => { const o = {}; o.f = 1; expect(o.f++).toBe(1); expect(++o.f).toBe(3); expect(++o.missing).toBeNaN(); });