cypress-io / cypress-io/code-coverage

Random error from babel preset env

Open
#958 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
445
Forks
115
PR merge metrics
No merged PRs in 30d

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 (http://localhost:8080/__cypress/runner/cypress_runner.js:120462:70)
at tryCatcher (http://localhost:8080/__cypress/runner/cypress_runner.js:1777:23)
at (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. (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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.