test(middleware/immer): add runtime tests for immer middleware (#3471)
* test(middleware/immer): add runtime tests for immer middleware
* test(middleware/immer): rename non-function-updater test to describe produce bypass
The previous name ("should merge state when given a non-function updater")
implied merge semantics, which is vanilla setState's behavior. What the test
actually exercises is immer.ts:79, where a non-function updater bypasses
`produce`. Renaming to "should not apply produce when updater is not a
function" per @sukvvon's review feedback. P
palkim committed
95d3f338c463f499aaa7a8dd5448c8b13a7dec0b
Parent: 3201328
Committed by GitHub <noreply@github.com>
on 4/21/2026, 2:31:02 AM