microsoft/playwright-test

Error when running “npx folio”: First argument must use the object destructuring pattern: _x

dav1d992 opened this issue · 1 comments

I have playwright tests and I run the tests with this command: npx folio.

But when I run the tests I receive this error message:

First argument must use the object destructuring pattern: _x

I did try to delete the .babelrc file which should work according to this thread. But that didn't change anything for me.

What could be done to address this error?

some-test.spec.ts:

import { it, expect, describe } from "@playwright/test";

describe('test', () => {
  it("is a basic test with the page", async ({ page }) => {
    await page.goto("https://playwright.dev/");
    const name = await page.innerText(".navbar__title");
    expect(name).toBe("Playwright");
  });
}) 

Hello, could you try it with the latest folio version? npm install folio@latest?

Would also appreciate if you could create a small reproducible on GitHub, so I can reproduce it myself and dig into the issue.