(caller: string, hash: string)
| 155 | // so the crashing frame alone is not a safe key — two different bugs would |
| 156 | // land in one issue. Frames are oldest-first, so the shared chunk is last. |
| 157 | const vendorEvent = (caller: string, hash: string): GroupingEvent => ({ |
| 158 | exception: { |
| 159 | values: [ |
| 160 | { |
| 161 | type: "TypeError", |
| 162 | stacktrace: { |
| 163 | frames: [ |
| 164 | { module: `${caller}-${hash}`, function: caller, in_app: true }, |
| 165 | { module: `dist-${hash}`, function: "throwHelper", in_app: true }, |
| 166 | ], |
| 167 | }, |
| 168 | }, |
| 169 | ], |
| 170 | }, |
| 171 | }); |
| 172 | |
| 173 | test("two vendor chunks sharing a name stay apart on their callers", () => { |
| 174 | const upload = stableGroupingFingerprint(vendorEvent("uploadArtifact", "BQZkXWT2")); |
no outgoing calls
no test coverage detected