Skip to content

Conversation

AtofStryker
Copy link
Contributor

@AtofStryker AtofStryker commented Sep 16, 2025

Additional details

Fixes an issue where ESM based cypress configs were failing in a require context due to using ESM specific imports. To fix the surgically, we attempt to require the config, and if it fails, fall through to try importing the config as ESM. If the first fails, we just rethrow the first error of the require.

Steps to test

How has the user experience changed?

PR Tasks

@AtofStryker AtofStryker self-assigned this Sep 16, 2025
@AtofStryker AtofStryker changed the title Fix/esm config loading fix: incorrect loading of ESM based configurations Sep 16, 2025
Copy link

cypress bot commented Sep 16, 2025

cypress    Run #65682

Run Properties:  status check passed Passed #65682  •  git commit f8aed28084: fix: make sure esm configs are indeed loaded as ESM
Project cypress
Branch Review fix/esm_config_loading
Run status status check passed Passed #65682
Run duration 20m 16s
Commit git commit f8aed28084: fix: make sure esm configs are indeed loaded as ESM
Committer Bill Glesias
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 14
Tests that did not run due to a developer annotating a test with .skip  Pending 1102
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 26662
View all changes introduced in this branch ↗︎
UI Coverage  45.14%
  Untested elements 187  
  Tested elements 158  
Accessibility  97.71%
  Failed rules  4 critical   8 serious   2 moderate   2 minor
  Failed elements 110  

@AtofStryker AtofStryker force-pushed the fix/esm_config_loading branch 2 times, most recently from 213e882 to c72382d Compare September 17, 2025 14:26
@AtofStryker AtofStryker force-pushed the fix/esm_config_loading branch from c72382d to f8aed28 Compare September 19, 2025 18:20
@AtofStryker AtofStryker merged commit 7d5fd90 into develop Sep 22, 2025
90 of 92 checks passed
@AtofStryker AtofStryker deleted the fix/esm_config_loading branch September 22, 2025 15:03
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Sep 23, 2025

Released in 15.3.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v15.3.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Sep 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Webpack config for Svelte component testing not loading as ESM
2 participants