Skip to content

Commit 363e28a

Browse files
committed
test(vanilla/store): revert 'Promise.resolve' to 'setTimeout' to preserve macrotask behavior
1 parent 19b0fd0 commit 363e28a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/vanilla/store.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ describe('should mount and trigger listeners even when an error is thrown', () =
786786
() => {},
787787
)
788788
const b = atom(async (get) => {
789-
await Promise.resolve()
789+
await new Promise((resolve) => setTimeout(resolve))
790790
get(a)
791791
get(e)
792792
})

0 commit comments

Comments
 (0)