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?
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:
How should this been done in client code? Shold nanostores/query expose a test helper to hide away this complexity?