feat(basecamp): added fetch-todolists action #883
Annotations
6 errors
integrations/basecamp/tests/basecamp-fetch-todolists.test.ts > basecamp fetch-todolists tests > should output the action output that is expected:
integrations/basecamp/tests/basecamp-fetch-todolists.test.ts#L17
AssertionError: expected { todolists: [ { …(25) }, { …(25) } ] } to deeply equal { output: { todolists: [ …(2) ] } }
- Expected
+ Received
Object {
- "output": Object {
"todolists": Array [
Object {
"app_todos_url": "https://3.basecamp.com/5904101/buckets/40818344/todolists/8294272585/todos",
"app_url": "https://3.basecamp.com/5904101/buckets/40818344/todolists/8294272585",
"bookmark_url": "https://3.basecampapi.com/5904101/my/bookmarks/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaTVuYVdRNkx5OWlZek12VW1WamIzSmthVzVuTHpneU9UUXlOekkxT0RVX1pYaHdhWEpsYzE5cGJnWTZCa1ZVIiwiZXhwIjpudWxsLCJwdXIiOiJyZWFkYWJsZSJ9fQ==--ff44f61076483afd1dd77cd0beff91169b6cfe21.json",
"bucket": Object {
"id": 40818344,
"name": "My Project",
"type": "Project",
},
"comments_count": 0,
"comments_url": "https://3.basecampapi.com/5904101/buckets/40818344/recordings/8294272585/comments.json",
"completed": false,
"completed_ratio": "0/3",
"created_at": "2025-02-05T09:58:11.895Z",
"creator": Object {
"admin": true,
"attachable_sgid": "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWxuYVdRNkx5OWlZek12VUdWeWMyOXVMelEzTlRRMU5EYzBQMlY0Y0dseVpYTmZhVzRHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImF0dGFjaGFibGUifX0=--9375d1ccfe5a43434a2c5db37749ebb9eb0e6a78",
"avatar_url": "https://bc3-production-assets-cdn.basecamp-static.com/5904101/people/BAhpBIJ81QI=--5e31d9db6756eba019d44d883ced295845a97090/avatar?v=1",
"bio": null,
"can_access_timesheet": false,
"can_manage_people": true,
"can_manage_projects": true,
"can_ping": true,
"client": false,
"company": Object {
"id": 3829597,
"name": "Nango",
},
"created_at": "2025-01-28T07:57:21.360Z",
"email_address": "[email protected]",
"employee": true,
"id": 47545474,
"location": null,
"name": "Andrew Karanja",
"owner": true,
"personable_type": "User",
"time_zone": "Europe/Moscow",
"title": null,
"updated_at": "2025-01-28T07:57:21.447Z",
},
"description": "",
"groups_url": "https://3.basecampapi.com/5904101/buckets/40818344/todolists/8294272585/groups.json",
"id": 8294272585,
"inherits_status": true,
"name": "Some other to do list",
"parent": Object {
"app_url": "https://3.basecamp.com/5904101/buckets/40818344/todosets/8262656026",
"id": 8262656026,
"title": "To-dos",
"type": "Todoset",
"url": "https://3.basecampapi.com/5904101/buckets/40818344/todosets/8262656026.json",
},
"position": 1,
"status": "active",
"subscription_url": "https://3.basecampapi.com/5904101/buckets/40818344/recordings/8294272585/subscription.json",
"title": "Some other to do list",
"todos_url": "https://3.basecampapi.com/5904101/buckets/40818344/todolists/8294272585/todos.json",
"type": "Todolist",
"updated_at": "2025-02-05T11:41:06.539Z",
"url": "https://3.basecampapi.com/5904101/buckets/40818344/todolists/8294272585.json",
"visible_to_clients": false,
},
Object {
"app_todos_url": "https://3.basecamp.com/5904101/buckets/40818344/todolists/8262661192/todos",
"app_url": "https://3.basecamp.com/5904101/buckets/40818344/todolists/8262661192",
"bookmark_url": "https://3.basecampapi.com/5904101/my/bookmarks/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaTVuYVdRNkx5OWlZek12VW1WamIzSmthVzVuTHpneU5qSTJOakV4T1RJX1pYaHdhWEpsYzE5cGJnWTZCa1ZVIiwiZXhwIjpudWxsLCJwdXIiOiJyZWFkYWJsZSJ9fQ==--edaacca3dae214d8b63069bfa278a06080cd6dca.json",
"bucket": Object {
"id": 40818344,
"name": "My Project",
"type": "Project",
},
"comments_count": 0,
"comments_url": "https://3.basecampapi.com/5904101/buckets/40818344/recordings/8262661192/comments.json",
"c
|
integrations/basecamp/tests/basecamp-todos.test.ts > basecamp todos tests > should get, map correctly the data and batchSave the result:
vitest.setup.ts#L57
Error: Failed to load mock data from /home/runner/work/integration-templates/integration-templates/integrations/basecamp/mocks/nango/get/proxy/buckets/40818344/todolists/8294272585/todos.json/todos/cd4e4d1f750a2f75fe07b526eb5bfce9259b4476.json: ENOENT: no such file or directory, open '/home/runner/work/integration-templates/integration-templates/integrations/basecamp/mocks/nango/get/proxy/buckets/40818344/todolists/8294272585/todos.json/todos/cd4e4d1f750a2f75fe07b526eb5bfce9259b4476.json' {
"method": "get",
"endpoint": "buckets/40818344/todolists/8294272585/todos.json",
"requestIdentityHash": "cd4e4d1f750a2f75fe07b526eb5bfce9259b4476",
"requestIdentity": {
"method": "get",
"endpoint": "buckets/40818344/todolists/8294272585/todos.json",
"params": [
[
"per_page",
100
]
],
"headers": []
}
}
❯ NangoSyncMock.getMockFile vitest.setup.ts:57:23
❯ NangoSyncMock.getCachedResponse vitest.setup.ts:78:26
❯ NangoSyncMock.proxyData vitest.setup.ts:363:24
❯ NangoSyncMock.linkPaginate vitest.setup.ts:216:33
❯ NangoSyncMock.getProxyPaginateData vitest.setup.ts:140:13
❯ Module.runSync integrations/basecamp/syncs/todos.ts:47:34
❯ integrations/basecamp/tests/basecamp-todos.test.ts:16:5
|
integrations/basecamp/tests/basecamp-todos.test.ts > basecamp todos tests > should get, map correctly the data and batchDelete the result:
vitest.setup.ts#L57
Error: Failed to load mock data from /home/runner/work/integration-templates/integration-templates/integrations/basecamp/mocks/nango/get/proxy/buckets/40818344/todolists/8294272585/todos.json/todos/cd4e4d1f750a2f75fe07b526eb5bfce9259b4476.json: ENOENT: no such file or directory, open '/home/runner/work/integration-templates/integration-templates/integrations/basecamp/mocks/nango/get/proxy/buckets/40818344/todolists/8294272585/todos.json/todos/cd4e4d1f750a2f75fe07b526eb5bfce9259b4476.json' {
"method": "get",
"endpoint": "buckets/40818344/todolists/8294272585/todos.json",
"requestIdentityHash": "cd4e4d1f750a2f75fe07b526eb5bfce9259b4476",
"requestIdentity": {
"method": "get",
"endpoint": "buckets/40818344/todolists/8294272585/todos.json",
"params": [
[
"per_page",
100
]
],
"headers": []
}
}
❯ NangoSyncMock.getMockFile vitest.setup.ts:57:23
❯ NangoSyncMock.getCachedResponse vitest.setup.ts:78:26
❯ NangoSyncMock.proxyData vitest.setup.ts:363:24
❯ NangoSyncMock.linkPaginate vitest.setup.ts:216:33
❯ NangoSyncMock.getProxyPaginateData vitest.setup.ts:140:13
❯ Module.runSync integrations/basecamp/syncs/todos.ts:47:34
❯ integrations/basecamp/tests/basecamp-todos.test.ts:36:7
|
tests (ubuntu-latest, 20.x)
Process completed with exit code 1.
|
tests (ubuntu-latest, 18.x)
The job was canceled because "ubuntu-latest_20_x" failed.
|
tests (ubuntu-latest, 18.x)
The operation was canceled.
|