isaacharrisholt / supawright

A Playwright test harness for E2E testing with Supabase
MIT License
47 stars 2 forks source link

Receiving 'AggregateError:' #9

Open changingviews opened 7 months ago

changingviews commented 7 months ago

Hey, pretty new to testing but I don't find what is wrong with my code or if it could be a bug?

This is the piece of code that is throwing an error:

import { withSupawright } from "supawright";
import type { Database } from "~/types/supabase";

const test = withSupawright<Database, "public">(["public"]);

// test.use({ storageState: { cookies: [], origins: [] } });

test("can create transaction", async ({ supawright }) => {
    console.log("context", supawright);
});

The only text I get is this:

  1) [firefox] › e2e/transactions.spec.ts:9:1 › can create transaction ─────────────────────────────

    AggregateError:

  1 failed
    [firefox] › e2e/transactions.spec.ts:9:1 › can create transaction ──────────────────────────────

I have no idea what I'm doing wrong. Any help would be appreciated thanks.

isaacharrisholt commented 6 months ago

Hey, sorry for taking so long to get back to you - I've been away for a little while. Could you share some more details about your setup etc.? I've not seen this before.

A minimum reproducible example would be great, too.