Fix Segment app issues & AvaTax app migration script #1502
Annotations
4 errors
Run tests:
apps/segment/src/modules/tracking-events/track-event.use-case.test.ts#L45
AssertionError: expected "spy" to be called with arguments: [ { …(4) } ]
Received:
1st spy call:
Array [
Object {
"event": "Saleor Order Updated",
"issuedAt": "2025-01-07",
"properties": Object {
"channel_id": "channel-id",
- "coupon": undefined,
"currency": "USD",
"discount": 7,
+ "email": "user-email",
"order_id": "order-id",
"products": Array [
Object {
"category": "categoryName",
- "coupon": undefined,
"name": "productName",
"price": 37,
"product_id": "line-id",
"quantity": 1,
"sku": "sku",
"variant": "variantName",
},
],
"shipping": 5,
"tax": 0.21,
"total": 37,
},
"user": Object {
"id": "user-email",
"type": "logged",
},
},
]
Number of calls: 1
❯ src/modules/tracking-events/track-event.use-case.test.ts:45:39
|
Run tests:
apps/segment/src/modules/tracking-events/tracking-events.test.ts#L53
Error: Snapshot `trackingEventFactory > should create event for order updated with user email if user information is present 1` mismatched
- Expected
+ Received
@@ -2,10 +2,11 @@
"issuedAt": "2025-01-07",
"payload": {
"channel_id": "channel-id",
"currency": "USD",
"discount": 7,
+ "email": "user-email",
"order_id": "order-id",
"products": [
{
"category": "categoryName",
"name": "productName",
❯ src/modules/tracking-events/tracking-events.test.ts:53:19
|
Run tests
segment#test:ci: command (/home/runner/work/apps/apps/apps/segment) /home/runner/setup-pnpm/node_modules/.bin/pnpm run test:ci exited (1)
|
Run tests
Process completed with exit code 1.
|
Loading