The error messages are similar, here's an example:
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'anonymous')
1 | /* eslint-disable class-methods-use-this */
> 2 | const { CodeObject } = require('@appland/models');
| ^
3 | const Unique = require('./unique');
4 |
5 | function classOf(codeObject) {
at makeClassEntity (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1141:31)
at digestEstree (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1483:8)
at digestNode (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1356:12)
at digestChildNode (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1366:3)
at digestEstree (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1467:7)
at digestNode (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1356:12)
at digestChildNode (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1366:3)
at digestEstree (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1375:7)
at digestNode (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1356:12)
at digestChildNode (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1366:3)
at file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1534:23
at Array.map (<anonymous>)
at digestEstree (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1534:10)
at digestNode (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1356:12)
at digestChildNode (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1366:3)
at file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1347:11
at Array.map (<anonymous>)
at digestNode (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1346:10)
at digestChildNode (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1366:3)
at file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1534:23
at Array.map (<anonymous>)
at digestEstree (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1534:10)
at digestNode (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1356:12)
at digestEstreeRoot (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1541:14)
at createModule (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1631:5)
at addClassmapSource (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1798:11)
at addExclusionSource (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:1898:12)
at file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:2773:5
at Array.filter (<anonymous>)
at instrument$2 (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:2772:41)
at instrument$1 (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:2877:37)
at instrument (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:3158:55)
at transform (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:3245:13)
at Object.process (file:/home/ahtrotta/projects/appland/appmap-js/node_modules/@appland/appmap-agent-js/dist/bundles/transformer-jest.mjs:3283:16)
at ScriptTransformer.transformSource (../../node_modules/@jest/transform/build/ScriptTransformer.js:542:31)
at ScriptTransformer._transformAndBuildScript (../../node_modules/@jest/transform/build/ScriptTransformer.js:671:40)
at ScriptTransformer.transform (../../node_modules/@jest/transform/build/ScriptTransformer.js:723:19)
at Object.<anonymous> (src/fingerprint/canonicalize/classDependencies.js:2:16)
at Object.<anonymous> (src/fingerprint/canonicalize.js:2:22)
at Object.<anonymous> (src/fingerprint/fingerprinter.ts:18:24)
at Object.<anonymous> (src/fingerprint/fingerprintQueue.ts:12:41)
at Object.<anonymous> (src/fingerprint/fingerprintWatchCommand.ts:49:44)
at Object.<anonymous> (tests/unit/fingerprint/fingerprintWatchCommand.spec.ts:40:51)
When I run the tests without the agent:
When I run the tests with the agent:
The error messages are similar, here's an example: