feat: add logging of latency to both error and success messages #184
Annotations
6 errors
mocking fetch:
src/http/fetcher.test.ts#L157
expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `mocking fetch 2`
Snapshot: "HttpRequestError: 500 GET some 93 ms"
Received: "HttpRequestError: 500 GET some 70 ms"
at Object.<anonymous> (src/http/fetcher.test.ts:157:23)
|
mocking fetch:
src/http/fetcher.test.ts#L160
expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `mocking fetch 3`
Snapshot: [HttpRequestError: 500 GET some 93 ms]
Received: [HttpRequestError: 500 GET some 70 ms]
at Object.<anonymous> (src/http/fetcher.test.ts:160:15)
|
mocking fetch:
src/http/fetcher.test.ts#L163
expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `mocking fetch 4`
- Snapshot - 1
+ Received + 1
- HttpRequestError: 500 GET some 93 ms
+ HttpRequestError: 500 GET some 70 ms
Caused by: AppError: aya-baya
at Object.<anonymous> (src/http/fetcher.test.ts:163:27)
|
json parse error:
src/http/fetcher.test.ts#L251
expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `json parse error 1`
Snapshot: "HttpRequestError: GET some 5 ms"
Received: "HttpRequestError: GET some 3 ms"
at Object.<anonymous> (src/http/fetcher.test.ts:251:23)
|
json parse error:
src/http/fetcher.test.ts#L264
expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `json parse error 3`
- Snapshot - 1
+ Received + 1
- HttpRequestError: GET some 5 ms
+ HttpRequestError: GET some 3 ms
Caused by: JsonParseError: Failed to parse: some text
at Object.<anonymous> (src/http/fetcher.test.ts:264:27)
|
build-job
Process completed with exit code 1.
|