Skip to content

Fix gha-otel-export test module resolution#265

Open
chagrafana wants to merge 1 commit intomainfrom
fix-otel-export-test
Open

Fix gha-otel-export test module resolution#265
chagrafana wants to merge 1 commit intomainfrom
fix-otel-export-test

Conversation

@chagrafana
Copy link
Copy Markdown
Contributor

Summary

  • Adds moduleNameMapper to jest.config.js to strip .js extensions from imports
  • Fixes the trace-ids.test.ts failure introduced by the gha-otel-export package, which uses NodeNext module resolution (requires .js extensions in imports that ts-jest couldn't resolve)

Test plan

  • npx jest gha-otel-export/src/trace-ids.test.ts passes locally

Add moduleNameMapper to strip .js extensions so ts-jest can resolve
NodeNext-style imports back to .ts source files.
@chagrafana chagrafana requested a review from a team as a code owner March 20, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants