Problem
The test suite fails with TextDecoder is not defined errors when running Jest with ESM modules. This is a pre-existing infrastructure issue affecting all PRs regardless of code quality.
Root Cause
Jest ESM compatibility issue with @actions/core and other Node.js built-ins. The test runner doesn't properly polyfill TextDecoder in ESM mode.
Impact
- Blocking: All PRs cannot merge due to test suite failures
- Not code-specific: Failures occur regardless of PR content
- Reproducible: Consistent failure across multiple CI runs
Example Error
ReferenceError: TextDecoder is not defined
at Module.<anonymous> (node_modules/@actions/core/...)
Affected Workflows
- Testing workflow
- All PRs (blocks CI pass gate)
Solution Options
- Configure Jest to polyfill
TextDecoder in ESM mode
- Add Node.js built-ins polyfill to test setup
- Update
@actions/core to compatible version
- Configure Jest ESM loader with proper globals
Acceptance Criteria
Labels
type:bug
area:tests
area:infrastructure
priority:critical
component:ci
Related: PR #634 blocked by this issue
Problem
The test suite fails with
TextDecoder is not definederrors when running Jest with ESM modules. This is a pre-existing infrastructure issue affecting all PRs regardless of code quality.Root Cause
Jest ESM compatibility issue with
@actions/coreand other Node.js built-ins. The test runner doesn't properly polyfillTextDecoderin ESM mode.Impact
Example Error
Affected Workflows
Solution Options
TextDecoderin ESM mode@actions/coreto compatible versionAcceptance Criteria
TextDecodererrorsLabels
type:bugarea:testsarea:infrastructurepriority:criticalcomponent:ciRelated: PR #634 blocked by this issue