Closed lachrist closed 1 year ago
The issue is that Jest does not stack transformers. Adding --transform '{}'
overwrite the previous transform
config field. We need to do some deeper configuration resolution to stack transformers ourselves.
To support stacking of esm transformers we need this: https://github.com/facebook/jest/issues/13759
Currently, I'm not able to record functions in react apps.
https://github.com/land-of-apps/appmap-agent-js-react
It looks like we are no longer able to intercept commonjs and native modules.
Maybe it has to do on how jest spawn test files when using jsdom:
https://github.com/facebook/jest/blob/aef5497c6685e8dd514e3f9ce9c601d03ca3cae2/packages/jest-environment-jsdom/src/index.ts#L63
Maybe the transformer overwrite
Module.prototype._compile
.