opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

Add smoke test for ESM

Open JamieDanielson opened this issue 2 years ago • 3 comments
trafficstars

          > I would appreciate advice on how to add a test case to ensure that using named exports from a .mjs file works. I don't know the test suite well.

I was able to repro this issue using the example app I added for esm-http-ts when I installed from the published package (Named export 'ConsoleSpanExporter' not found).

My thought is similar to a point in the comment above - we use this app in a smoke test. I'm not sure if we already do that or something similar elsewhere in this repo, but I can take a look at that.

Originally posted by @JamieDanielson in https://github.com/open-telemetry/opentelemetry-js/issues/3976#issuecomment-1642177347

JamieDanielson avatar Jul 19 '23 19:07 JamieDanielson