Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

browsers.flatMap is not a function #136

@mxschmitt

Description

@mxschmitt
TypeError: browsers.flatMap is not a function
    at Promise.all.tests.map (/home/runner/work/try-playwright/try-playwright/tests/node_modules/jest-playwright-preset/lib/PlaywrightRunner.js:36:25)

Solution would be either to polyfill it manually or to use babel with the typescript preset for transcompiling the source code.

Probably the easiest would be to use that: https://www.npmjs.com/package/array.prototype.flatmap

Seems to be well maintained and famous.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions