Skip to content

[With test] Function loadStripe() does not work #1685

Open
@Spixmaster

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.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions