bahmutov / cypress-esbuild-preprocessor

Bundle Cypress specs using esbuild
MIT License
74 stars 12 forks source link

Cypress hangs with cypress esbuild preprossor when running tests on CLI with cypress run #309

Open artipsingh opened 1 year ago

artipsingh commented 1 year ago

Cypress hangs with cypress esbuild preprossor when running tests on CLI, the same test is passing and bundled nicely with esbuild when running tests on the cypress GUI.

// cypress.config.js import { defineConfig } from 'cypress' import createBundler from '@bahmutov/cypress-esbuild-preprocessor'

export default defineConfig({ e2e: { setupNodeEvents(on, config) { on('file:preprocessor', createBundler()) }, }, })

DEBUG=cypress-** npx cypress run --spec cypress/tests/login.cy.js

@bahmutov/cypress-esbuild-preprocessor: 2.2.0, esbuild: 0.18.16

DmytroSoninLinguahouse commented 1 year ago

Can confirm, experiencing the same issue.

Helias commented 10 months ago

I have the same issue, I've opened a StackOverflow question here about it.