MetaMask/snaps

Create a pattern for awaiting re-renders in `snaps-jest`

Closed this issue · 0 comments

When testing dynamic UI using snaps-jest, it is currently difficult to deal with re-renders since there is no good utility for waiting for the UI to change.

response.getInterface currently returns the active interface and waits for one to exist if it doesn't already. We likely would want to expose a similar utility for waiting for the interface to be updated.