💻 Mission 6

B1 · 15 min

Describe an Error

I can describe an error to a teammate: what I ran, what the error says, where it is and what I think the cause is.
This morning you pull the latest changes in orders-service and run the tests. One test fails. You join a call with Alex and describe the error.
Terminal: orders-service
$ git pull
Updating 3f2a1c9..8d4e7b2
$ npm test
FAIL src/orders/orders.test.ts
TypeError: Cannot read properties of undefined (reading 'id')
at getOrder (src/orders/service.ts:42:18)
Tests: 1 failed, 12 passed, 13 total
Find three things before you speak: the error message (TypeError: Cannot read…), the place (service.ts, line 42) and the result (1 failed, 12 passed).

Your mission

Describe the error clearly: what you ran, what the error says, where it is and what you think the cause is.

Keep learning

Describe an Error | Sunny Academy