We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8161dca + 5b8ee64 commit a671988Copy full SHA for a671988
packages/template-retail-react-app/app/components/sf-payments-express-buttons/index.test.js
@@ -330,7 +330,7 @@ const defaultProps = {
330
}
331
332
// --- Shared test helpers (reused across describes) ---
333
-const flush = () => new Promise((r) => setImmediate(r))
+const flush = () => new Promise((r) => setTimeout(r, 0))
334
335
async function renderAndGetConfig(props = {}) {
336
const prepareBasket = props.prepareBasket ?? jest.fn().mockResolvedValue(makeBasket('basket-1'))
0 commit comments