Open rhelmer opened 1 year ago
Jest has experimental (due to it being experimental in Node) support for modules: https://jestjs.io/docs/ecmascript-modules
IIRC this is what we do for our cloud functions, we could consider doing the same here, if only for tests.
Trying to get unit tests working for attention stream extension, Glean.js isn't being bundled correctly by rollup.
I recall that we hit an issue with the cloud functions where we had to switch to ES modules, because Glean doesn't export CommonJS modules in the way the bundler wanted.