Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Random error from babel preset env #958

Open
@Thebarda

Description

Hello, I have a random error from @babel/preset-env in our component tests.
I'm using SWC+swc-plugin-coverage-instrument to transpile my TypeScript rather than Babel. So I don't even need to use babel.
But I'm getting this issue sometimes in our CI only:

You called `cy.wrap()` with a promise that never resolved.
To increase the timeout, use `{ timeout: number }`
https://on.cypress.io/wrap
Because this error occurred during a `before all` hook we are skipping all of the remaining tests.
 at <unknown> (http://localhost:8080/__cypress/runner/cypress_runner.js:120462:70)
 at tryCatcher (http://localhost:8080/__cypress/runner/cypress_runner.js:1777:23)
 at <unknown> (http://localhost:8080/__cypress/runner/cypress_runner.js:4156:41)
 at tryCatcher (http://localhost:8080/__cypress/runner/cypress_runner.js:1777:23)
 at Promise._settlePromiseFromHandler (http://localhost:8080/__cypress/runner/cypress_runner.js:1489:31)
 at Promise._settlePromise (http://localhost:8080/__cypress/runner/cypress_runner.js:1546:18)
 at Promise._settlePromise0 (http://localhost:8080/__cypress/runner/cypress_runner.js:1591:10)
 at Promise._settlePromises (http://localhost:8080/__cypress/runner/cypress_runner.js:1667:18)
 at _drainQueueStep (http://localhost:8080/__cypress/runner/cypress_runner.js:2377:12)
 at _drainQueue (http://localhost:8080/__cypress/runner/cypress_runner.js:2370:9)
 at Async._drainQueues (http://localhost:8080/__cypress/runner/cypress_runner.js:2386:5)
 at Async.drainQueues (http://localhost:8080/__cypress/runner/cypress_runner.js:2256:14)
 From Your Spec Code:
 at Context.<anonymous> (http://localhost:8080/__cypress/src/vendors-node_modules_pnpm_cypress_code-coverage_3_14_4__babel_core_7_26_9__babel_preset-env_7-816453.js:18288:6)

Is there a way to remove any Babel initialization from cypress code-coverage?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /