Rewrite to add API #91
node.js.yml
on: pull_request
Annotations
10 errors
check
Process completed with exit code 1.
|
lint:
src/types/globals.ts#L8
'PortfolioConfig' is not defined
|
lint:
tests/setup/jestExtended.d.ts#L8
'T' is not defined
|
lint
Process completed with exit code 1.
|
tests/backend/admin/firstrun.test.ts > POST /api/admin/repo > git > Clones repo to the default branch when URL is provided:
tests/api/fetch.ts#L91
Error: ApiError: [400] Error: Cloning into './data'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
❯ Module.apiFetch tests/api/fetch.ts:91:11
❯ tests/backend/admin/firstrun.test.ts:22:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { error: 'Error: Cloning into \'./data\'...\ngit@github.com: Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n', code: 400 }
|
tests/backend/admin/firstrun.test.ts > POST /api/admin/repo > git > Doesn't give an error if the repository is entirely empty:
tests/api/fetch.ts#L91
Error: ApiError: [400] Error: Cloning into './data'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
❯ Module.apiFetch tests/api/fetch.ts:91:11
❯ tests/backend/admin/firstrun.test.ts:35:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { error: 'Error: Cloning into \'./data\'...\ngit@github.com: Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n', code: 400 }
|
tests/backend/admin/firstrun.test.ts > POST /api/admin/repo > git > Checks out a branch when one is given:
tests/api/fetch.ts#L91
Error: ApiError: [400] Error: Cloning into './data'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
❯ Module.apiFetch tests/api/fetch.ts:91:11
❯ tests/backend/admin/firstrun.test.ts:40:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { error: 'Error: Cloning into \'./data\'...\ngit@github.com: Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n', code: 400 }
|
tests/backend/admin/repo/get.test.ts > Blocks unauthorized users:
tests/backend/admin/repo/get.test.ts#L10
AssertionError: expected Error: ApiError: [404] Error 404 at GET /… { …(2) } to match object { code: 401 }
(1 matching property omitted from actual)
- Expected
+ Received
Object {
- "code": 401,
+ "code": 404,
}
❯ tests/backend/admin/repo/get.test.ts:10:3
|
tests/backend/admin/repo/get.test.ts > Gives a 400 when no data directory is set up:
tests/backend/admin/repo/get.test.ts#L16
AssertionError: expected Error: ApiError: [404] Error 404 at GET /… { …(2) } to match object { code: 400 }
(1 matching property omitted from actual)
- Expected
+ Received
Object {
- "code": 400,
+ "code": 404,
}
❯ tests/backend/admin/repo/get.test.ts:16:3
|
test
Process completed with exit code 1.
|