microsoft / playwright-test

Build a cross-browser end-to-end test suite with Playwright.
https://playwright.dev
Apache License 2.0
777 stars 34 forks source link

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

Closed dav1d992 closed 3 years ago

dav1d992 commented 3 years ago

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");
  });
}) 
mxschmitt commented 3 years ago

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.