fix: handle edge cases and log API responses properly #534
Annotations
10 errors and 1 warning
Unit:
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
|
Unit:
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
|
Unit:
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
|
Unit:
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
|
Unit:
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
|
Unit:
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
|
Unit:
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
|
Unit:
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
|
Unit:
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
|
Unit
Process completed with exit code 1.
|
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/
|
Loading