| 95 | // The worker bundle ships as content-hashed chunks, so the only module name |
| 96 | // Sentry ever sees for a given frame changes on every deploy. |
| 97 | const workerEvent = (chunkHash: string): ErrorEvent => ({ |
| 98 | type: undefined, |
| 99 | exception: { |
| 100 | values: [ |
| 101 | { |
| 102 | type: "GateCheckTimeoutError", |
| 103 | value: "balance check timed out", |
| 104 | stacktrace: { |
| 105 | frames: [ |
| 106 | { |
| 107 | filename: `/assets/execution-rate-limit-${chunkHash}.js`, |
| 108 | module: `execution-rate-limit-${chunkHash}`, |
| 109 | function: "timeoutOrElse", |
| 110 | in_app: true, |
| 111 | }, |
| 112 | ], |
| 113 | }, |
| 114 | }, |
| 115 | ], |
| 116 | }, |
| 117 | }); |
| 118 | |
| 119 | it("pins one fingerprint across two deploys of the same chunk", () => { |
| 120 | const before = beforeSendCloudEvent(workerEvent("BAuwphPA"), {}); |