Skip to content

🧪 Run Tests

🧪 Run Tests #74

Triggered via schedule January 27, 2024 00:33
Status Failure
Total duration 1m 0s
Artifacts

test.yml

on: schedule
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 3 warnings
TypeError: undefined is not an object (evaluating 'results.result.metrics'): tests/modules/analytics.test.ts#L20
at /home/runner/work/reclaim-unofficial-api/reclaim-unofficial-api/tests/modules/analytics.test.ts:20:12
error: expect(received).toMatchSnapshot(expected): tests/modules/analytics.test.ts#L33
Expected: [ { "metric": { "@type": "AnalyticsDurationByCategoryMetric", "appendixKeys": {}, "bucket": "ANALYTICS_CATEGORY", "description": "Duration by category", "noData": false, "type": "durationByCategory", "unit": "DURATION_MINUTES", "values": [ { "key": "TEAM_MEETING", "value": 0, }, { "key": "EXTERNAL_MEETING", "value": 17, }, { "key": "ONE_ON_ONE", "value": 14, }, { "key": "BREAK", "value": 5, }, { "key": "DEEP_WORK", "value": 62, }, { "key": "SHALLOW_WORK", "value": 30, }, ], }, "name": "DURATION_BY_CATEGORY", }, ] Received: [ { "metric": { "@type": "AnalyticsDurationByCategoryMetric", "appendixKeys": {}, "bucket": "ANALYTICS_CATEGORY", "description": "Duration by category", "noData": false, "type": "durationByCategory", "unit": "DURATION_MINUTES", "values": [ { "key": "EXTERNAL_MEETING", "value": 17, }, { "key": "ONE_ON_ONE", "value": 12, }, { "key": "BREAK", "value": 5, }, { "key": "DEEP_WORK", "value": 61, }, { "key": "SHALLOW_WORK", "value": 32, }, ], }, "name": "DURATION_BY_CATEGORY", }, ] at /home/runner/work/reclaim-unofficial-api/reclaim-unofficial-api/tests/modules/analytics.test.ts:33:5
error: expect(received).toMatchSnapshot(expected): tests/modules/analytics.test.ts#L33
Expected: [ { "metric": { "@type": "AnalyticsDurationByCategoryMetric", "appendixKeys": {}, "bucket": "ANALYTICS_CATEGORY", "description": "Duration by category", "noData": false, "type": "durationByCategory", "unit": "DURATION_MINUTES", "values": [ { "key": "TEAM_MEETING", "value": 0, }, { "key": "EXTERNAL_MEETING", "value": 17, }, { "key": "ONE_ON_ONE", "value": 14, }, { "key": "BREAK", "value": 5, }, { "key": "DEEP_WORK", "value": 62, }, { "key": "SHALLOW_WORK", "value": 30, }, ], }, "name": "DURATION_BY_CATEGORY", }, ] Received: [ { "metric": { "@type": "AnalyticsDurationByCategoryMetric", "appendixKeys": {}, "bucket": "ANALYTICS_CATEGORY", "description": "Duration by category", "noData": false, "type": "durationByCategory", "unit": "DURATION_MINUTES", "values": [ { "key": "EXTERNAL_MEETING", "value": 17, }, { "key": "ONE_ON_ONE", "value": 12, }, { "key": "BREAK", "value": 5, }, { "key": "DEEP_WORK", "value": 61, }, { "key": "SHALLOW_WORK", "value": 32, }, ], }, "name": "DURATION_BY_CATEGORY", }, ] at /home/runner/work/reclaim-unofficial-api/reclaim-unofficial-api/tests/modules/analytics.test.ts:33:5
error: expect(received).toMatchSnapshot(expected): tests/modules/analytics.test.ts#L33
Expected: [ { "metric": { "@type": "AnalyticsDurationByCategoryMetric", "appendixKeys": {}, "bucket": "ANALYTICS_CATEGORY", "description": "Duration by category", "noData": false, "type": "durationByCategory", "unit": "DURATION_MINUTES", "values": [ { "key": "TEAM_MEETING", "value": 0, }, { "key": "EXTERNAL_MEETING", "value": 17, }, { "key": "ONE_ON_ONE", "value": 14, }, { "key": "BREAK", "value": 5, }, { "key": "DEEP_WORK", "value": 62, }, { "key": "SHALLOW_WORK", "value": 30, }, ], }, "name": "DURATION_BY_CATEGORY", }, ] Received: [ { "metric": { "@type": "AnalyticsDurationByCategoryMetric", "appendixKeys": {}, "bucket": "ANALYTICS_CATEGORY", "description": "Duration by category", "noData": false, "type": "durationByCategory", "unit": "DURATION_MINUTES", "values": [ { "key": "EXTERNAL_MEETING", "value": 17, }, { "key": "ONE_ON_ONE", "value": 12, }, { "key": "BREAK", "value": 5, }, { "key": "DEEP_WORK", "value": 61, }, { "key": "SHALLOW_WORK", "value": 32, }, ], }, "name": "DURATION_BY_CATEGORY", }, ] at /home/runner/work/reclaim-unofficial-api/reclaim-unofficial-api/tests/modules/analytics.test.ts:33:5
test
Final attempt failed. Child_process exited with error code 1
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, oven-sh/setup-bun@v1, nick-fields/retry@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test
Attempt 1 failed. Reason: Child_process exited with error code 1
test
Attempt 2 failed. Reason: Child_process exited with error code 1