cypress-esbuild-preprocessor icon indicating copy to clipboard operation
cypress-esbuild-preprocessor copied to clipboard

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

Open artipsingh opened this issue 2 years ago • 2 comments

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

artipsingh avatar Jul 26 '23 13:07 artipsingh

Can confirm, experiencing the same issue.

DmytroSoninLinguahouse avatar Aug 22 '23 07:08 DmytroSoninLinguahouse

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

Helias avatar Jan 12 '24 10:01 Helias