fix: handle edge cases and log API responses properly #534
ci.yml
on: push
Matrix: prepare
Matrix: size
Matrix: suite
Matrix: types
Annotations
40 errors and 12 warnings
test/client.test.ts > throws ForbiddenError if access token is invalid for repository metadata:
test/client.test.ts#L521
AssertionError: expected [Function] to throw error matching /invalid access token/i but got 'An invalid API response was returned'
- Expected:
/invalid access token/i
+ Received:
"An invalid API response was returned"
❯ test/client.test.ts:521:2
|
test/client.test.ts > throws ForbiddenError if access token is invalid for query:
test/client.test.ts#L537
AssertionError: expected [Function] to throw error matching /invalid access token/i but got 'An invalid API response was returned'
- Expected:
/invalid access token/i
+ Received:
"An invalid API response was returned"
❯ test/client.test.ts:537:2
|
test/client.test.ts > throws ForbiddenError if response code is 403:
test/client.test.ts#L571
AssertionError: expected 'An invalid API response was returned' to be 'Invalid access token' // Object.is equality
- Expected
+ Received
- Invalid access token
+ An invalid API response was returned
❯ test/client.test.ts:571:25
|
test/client.test.ts > throws ParsingError if response code is 400 with parsing-error type:
test/client.test.ts#L599
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:599:2
|
test/client.test.ts > throws RepositoryNotFoundError if repository does not exist:
test/client.test.ts#L675
AssertionError: expected [Function] to throw error matching /repository not found/i but got 'An invalid API response was returned'
- Expected:
/repository not found/i
+ Received:
"An invalid API response was returned"
❯ test/client.test.ts:675:2
|
test/client.test.ts > throws RefNotFoundError if ref does not exist:
test/client.test.ts#L702
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:702:2
|
test/client.test.ts > throws RefExpiredError if ref is expired:
test/client.test.ts#L729
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:729:2
|
test/client.test.ts > throws PreviewTokenExpiredError if preview token is expired:
test/client.test.ts#L756
AssertionError: expected [Function] to throw error including 'This preview token has expired' but got 'An invalid API response was returned'
- Expected
+ Received
- This preview token has expired
+ An invalid API response was returned
❯ test/client.test.ts:756:2
|
test/client.test.ts > throws NotFoundError if the 404 error is unknown:
test/client.test.ts#L783
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:783:2
|
Suite (ubuntu-latest, Node 22)
Process completed with exit code 1.
|
test/client.test.ts > throws ForbiddenError if access token is invalid for repository metadata:
test/client.test.ts#L521
AssertionError: expected [Function] to throw error matching /invalid access token/i but got 'An invalid API response was returned'
- Expected:
/invalid access token/i
+ Received:
"An invalid API response was returned"
❯ test/client.test.ts:521:2
|
test/client.test.ts > throws ForbiddenError if access token is invalid for query:
test/client.test.ts#L537
AssertionError: expected [Function] to throw error matching /invalid access token/i but got 'An invalid API response was returned'
- Expected:
/invalid access token/i
+ Received:
"An invalid API response was returned"
❯ test/client.test.ts:537:2
|
test/client.test.ts > throws ForbiddenError if response code is 403:
test/client.test.ts#L571
AssertionError: expected 'An invalid API response was returned' to be 'Invalid access token' // Object.is equality
- Expected
+ Received
- Invalid access token
+ An invalid API response was returned
❯ test/client.test.ts:571:25
|
test/client.test.ts > throws ParsingError if response code is 400 with parsing-error type:
test/client.test.ts#L599
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:599:2
|
test/client.test.ts > throws RepositoryNotFoundError if repository does not exist:
test/client.test.ts#L675
AssertionError: expected [Function] to throw error matching /repository not found/i but got 'An invalid API response was returned'
- Expected:
/repository not found/i
+ Received:
"An invalid API response was returned"
❯ test/client.test.ts:675:2
|
test/client.test.ts > throws RefNotFoundError if ref does not exist:
test/client.test.ts#L702
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:702:2
|
test/client.test.ts > throws RefExpiredError if ref is expired:
test/client.test.ts#L729
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:729:2
|
test/client.test.ts > throws PreviewTokenExpiredError if preview token is expired:
test/client.test.ts#L756
AssertionError: expected [Function] to throw error including 'This preview token has expired' but got 'An invalid API response was returned'
- Expected
+ Received
- This preview token has expired
+ An invalid API response was returned
❯ test/client.test.ts:756:2
|
test/client.test.ts > throws NotFoundError if the 404 error is unknown:
test/client.test.ts#L783
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:783:2
|
Suite (ubuntu-latest, Node 18)
Process completed with exit code 1.
|
test/client.test.ts > throws ForbiddenError if access token is invalid for repository metadata:
test/client.test.ts#L521
AssertionError: expected [Function] to throw error matching /invalid access token/i but got 'An invalid API response was returned'
- Expected:
/invalid access token/i
+ Received:
"An invalid API response was returned"
❯ test/client.test.ts:521:2
|
test/client.test.ts > throws ForbiddenError if access token is invalid for query:
test/client.test.ts#L537
AssertionError: expected [Function] to throw error matching /invalid access token/i but got 'An invalid API response was returned'
- Expected:
/invalid access token/i
+ Received:
"An invalid API response was returned"
❯ test/client.test.ts:537:2
|
test/client.test.ts > throws ForbiddenError if response code is 403:
test/client.test.ts#L571
AssertionError: expected 'An invalid API response was returned' to be 'Invalid access token' // Object.is equality
- Expected
+ Received
- Invalid access token
+ An invalid API response was returned
❯ test/client.test.ts:571:25
|
test/client.test.ts > throws ParsingError if response code is 400 with parsing-error type:
test/client.test.ts#L599
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:599:2
|
test/client.test.ts > throws RepositoryNotFoundError if repository does not exist:
test/client.test.ts#L675
AssertionError: expected [Function] to throw error matching /repository not found/i but got 'An invalid API response was returned'
- Expected:
/repository not found/i
+ Received:
"An invalid API response was returned"
❯ test/client.test.ts:675:2
|
test/client.test.ts > throws RefNotFoundError if ref does not exist:
test/client.test.ts#L702
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:702:2
|
test/client.test.ts > throws RefExpiredError if ref is expired:
test/client.test.ts#L729
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:729:2
|
test/client.test.ts > throws PreviewTokenExpiredError if preview token is expired:
test/client.test.ts#L756
AssertionError: expected [Function] to throw error including 'This preview token has expired' but got 'An invalid API response was returned'
- Expected
+ Received
- This preview token has expired
+ An invalid API response was returned
❯ test/client.test.ts:756:2
|
test/client.test.ts > throws NotFoundError if the 404 error is unknown:
test/client.test.ts#L783
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:783:2
|
Suite (ubuntu-latest, Node 20)
Process completed with exit code 1.
|
test/client.test.ts > throws ForbiddenError if access token is invalid for repository metadata:
test/client.test.ts#L521
AssertionError: expected [Function] to throw error matching /invalid access token/i but got 'An invalid API response was returned'
- Expected:
/invalid access token/i
+ Received:
"An invalid API response was returned"
❯ test/client.test.ts:521:2
|
test/client.test.ts > throws ForbiddenError if access token is invalid for query:
test/client.test.ts#L537
AssertionError: expected [Function] to throw error matching /invalid access token/i but got 'An invalid API response was returned'
- Expected:
/invalid access token/i
+ Received:
"An invalid API response was returned"
❯ test/client.test.ts:537:2
|
test/client.test.ts > throws ForbiddenError if response code is 403:
test/client.test.ts#L571
AssertionError: expected 'An invalid API response was returned' to be 'Invalid access token' // Object.is equality
- Expected
+ Received
- Invalid access token
+ An invalid API response was returned
❯ test/client.test.ts:571:25
|
test/client.test.ts > throws ParsingError if response code is 400 with parsing-error type:
test/client.test.ts#L599
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:599:2
|
test/client.test.ts > throws RepositoryNotFoundError if repository does not exist:
test/client.test.ts#L675
AssertionError: expected [Function] to throw error matching /repository not found/i but got 'An invalid API response was returned'
- Expected:
/repository not found/i
+ Received:
"An invalid API response was returned"
❯ test/client.test.ts:675:2
|
test/client.test.ts > throws RefNotFoundError if ref does not exist:
test/client.test.ts#L702
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:702:2
|
test/client.test.ts > throws RefExpiredError if ref is expired:
test/client.test.ts#L729
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:729:2
|
test/client.test.ts > throws PreviewTokenExpiredError if preview token is expired:
test/client.test.ts#L756
AssertionError: expected [Function] to throw error including 'This preview token has expired' but got 'An invalid API response was returned'
- Expected
+ Received
- This preview token has expired
+ An invalid API response was returned
❯ test/client.test.ts:756:2
|
test/client.test.ts > throws NotFoundError if the 404 error is unknown:
test/client.test.ts#L783
AssertionError: expected [Function] to throw error including 'message' but got 'An invalid API response was returned'
- Expected
+ Received
- message
+ An invalid API response was returned
❯ test/client.test.ts:783:2
|
Suite (ubuntu-latest, Node 16)
Process completed with exit code 1.
|
Prepare (ubuntu-latest, Node 20)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Prepare (ubuntu-latest, Node 18)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Prepare (ubuntu-latest, Node 16)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Prepare (ubuntu-latest, Node 22)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Types (ubuntu-latest, Node 22, TS 5.4)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Types (ubuntu-latest, Node 22, TS 5.3)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Types (ubuntu-latest, Node 22, TS 5.2)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Types (ubuntu-latest, Node 22, TS 5.5)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Suite (ubuntu-latest, Node 22)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Suite (ubuntu-latest, Node 18)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Suite (ubuntu-latest, Node 20)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Suite (ubuntu-latest, Node 16)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|