We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f5acc16 + 1dce78a commit 0327eaeCopy full SHA for 0327eae
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