-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
It is quite unclear how to properly await propagation of query results in query stores during testing.
Your own code uses this quite crazy logic:
export const advance = async (ms = 0) => {
await new Promise<void>((r) => r());
await new Promise<void>((r) => r());
vi.advanceTimersByTime(ms);
await new Promise<void>((r) => r());
await new Promise<void>((r) => r());
};How should this been done in client code? Shold nanostores/query expose a test helper to hide away this complexity?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels