• Robert Knight's avatar
    Add missing calls to `act` in `useStoreProxy` tests · afd62649
    Robert Knight authored
    Add calls to `act` around proxy method calls that trigger store changes
    which in turn schedule deferred updates within Preact components. This
    should hopefully fix an issue with flakey tests due to updates being
    flushed after the tests have finished executing.
    afd62649
use-store-test.js 4.51 KB