Skip to content

fix: update types to match actual API response format (camelCase fields) #23

fix: update types to match actual API response format (camelCase fields)

fix: update types to match actual API response format (camelCase fields) #23

Triggered via push February 6, 2026 13:48
Status Failure
Total duration 21s
Artifacts

unit-test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

5 errors
test
Process completed with exit code 1.
tests/viem/actions/shred/watchShreds.test.ts > watchShreds > should handle multiple shreds in sequence: src/viem/actions/shred/watchShreds.ts#L62
TypeError: Cannot read properties of undefined (reading 'id') ❯ onData src/viem/actions/shred/watchShreds.ts:62:54 ❯ tests/viem/actions/shred/watchShreds.test.ts:255:5
tests/viem/actions/shred/watchShreds.test.ts > watchShreds > should work without onError callback: tests/viem/actions/shred/watchShreds.test.ts#L190
AssertionError: expected [Function] to not throw an error but 'TypeError: Cannot read properties of …' was thrown - Expected: undefined + Received: "TypeError: Cannot read properties of undefined (reading 'id')" ❯ tests/viem/actions/shred/watchShreds.test.ts:190:54
tests/viem/actions/shred/watchShreds.test.ts > watchShreds > should handle shred data and format it: src/viem/actions/shred/watchShreds.ts#L62
TypeError: Cannot read properties of undefined (reading 'id') ❯ onData src/viem/actions/shred/watchShreds.ts:62:54 ❯ tests/viem/actions/shred/watchShreds.test.ts:93:5
tests/viem/actions/shred/watchShreds.test.ts > watchShreds > should subscribe to shreds and call onShred: tests/viem/actions/shred/watchShreds.test.ts#L49
AssertionError: expected "spy" to be called with arguments: [ { params: [ 'shreds' ], …(2) } ] Received: 1st spy call: [ { - "onData": Any<Function>, - "onError": Any<Function>, + "onData": [Function onData], + "onError": [Function onError], "params": [ "shreds", + false, ], }, ] Number of calls: 1 ❯ tests/viem/actions/shred/watchShreds.test.ts:49:37