Skip to content

webpack info logs less readable with CYPRESS.STDERR annotations #32569

@MikeMcC399

Description

@MikeMcC399

Current behavior

Logs for component testing with webpack are less readable than they were with Cypress 14 (14.5.4).

There is a block of information which is labeled as errors:

<<<CYPRESS.STDERR.START>>><i> [webpack-dev-server] Project is running at:
<<<CYPRESS.STDERR.END>>><<<CYPRESS.STDERR.START>>><i> [webpack-dev-server] Loopback: http://127.0.0.1:8080/
<i> [webpack-dev-server] Content not from webpack is served from '/home/mike/github/cypress-io/cypress-component-testing-apps/react-webpack5-js/public' directory
<<<CYPRESS.STDERR.END>>>

Desired behavior

Revert to a more readable information display, as it was in Cypress 14, for example:

DevTools listening on ws://127.0.0.1:35593/devtools/browser/dccfb69b-5d2a-45eb-98f1-97037b49460a
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: http://127.0.0.1:8080/
<i> [webpack-dev-server] Content not from webpack is served from '/home/mike/github/cypress-io/cypress-component-testing-apps/react-webpack5-js/public' directory

Test code to reproduce

git clone https://github.com/cypress-io/cypress-component-testing-apps
cd cypress-component-testing-apps
cd react-webpack5-js
npm ci
npx cypress run --component

Cypress Version

First reported for Cypress versions: 15.0.0 - 15.3.0
Continues to be reproducible for Cypress: 15.4.0

Debug Logs

$ npx cypress run --component

DevTools listening on ws://127.0.0.1:41975/devtools/browser/e52e3bb0-2919-4ec3-8c41-8d568ef5dfd9
<<<CYPRESS.STDERR.START>>><i> [webpack-dev-server] Project is running at:
<<<CYPRESS.STDERR.END>>><<<CYPRESS.STDERR.START>>><i> [webpack-dev-server] Loopback: http://127.0.0.1:8080/
<i> [webpack-dev-server] Content not from webpack is served from '/home/mike/github/cypress-io/cypress-component-testing-apps/react-webpack5-js/public' directory
<<<CYPRESS.STDERR.END>>>
====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        15.0.0                                                                         │
  │ Browser:        Electron 136 (headless)                                                        │
  │ Node Version:   v22.20.0 (/home/mike/n/bin/node)                                               │
  │ Specs:          5 found (App.cy.js, components/Button.cy.js, components/InputField.cy.js, comp │
  │                 onents/LoginForm.cy.js, components/Welcome.cy.js)                              │
  │ Searched:       **/*.cy.{js,jsx,ts,tsx}                                                        │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  App.cy.js                                                                       (1 of 5)
4 assets
48 modules
webpack 5.97.1 compiled successfully in 2446 ms
6 assets
54 modules
webpack 5.97.1 compiled successfully in 250 ms

Other

Regression from Cypress 14

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions