Open
Description
Version 16.5.3 using Bun.
Source code:
happy-dom is pre-loaded as per instruction.
import {
loadStripe,
type Stripe
} from "@stripe/stripe-js";
import {assert} from "assert-ts";
test("showcase", async (): Promise<undefined> =>
{
const stripe: null | Stripe = await loadStripe("some-public-key");
assert(stripe !== null);
});
Result:
❯ bun test --coverage tests/src-web/typescript/payment.test.ts
bun test v1.1.42 (50eec002)
error: Test "showcase" timed out after 5002ms
✗ showcase [5002.48ms]
Increasing the timeout does not help. The function loadStripe()
takes forever.
Expected:
The function loadStripe()
should finish. The source code works in the browser.