is the async act really needed in this case?
expect(el.innerHTML).toBe("");
await act(async () => {
resolve(42);
});
expect(el.innerHTML).toBe("42");
since you are not awaiting for the result of resolve or returning it, it seems like a normal non-async act might work here.
is the async
actreally needed in this case?since you are not awaiting for the result of
resolveor returning it, it seems like a normal non-asyncactmight work here.