dsanders11

#47185: test: strip color output in ESM spec

Merged
Created: May 20, 2025, 7:13:52 PM
Merged: May 21, 2025, 3:50:07 AM
1 comments
Target: main

Description of Change

Ran into this when running these tests under VS Code, FORCE_COLOR would be set which caused ANSI escape codes to be present in the output and fail the test. Node.js provides a nice little util for exactly this situation.

Checklist

  • PR description included and stakeholders cc'd
  • npm test passes

Release Notes

Notes: none

Backports

No Backports Requested

This pull request doesn't have any backports requested or created for older release branches.

What are backports?

Backports are copies of changes made to the main branch that are applied to older release branches. They ensure that bug fixes and important changes are available in maintained older versions of Electron.

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron