Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

95% code test coverage #135

95% code test coverage

95% code test coverage #135

Triggered via pull request August 31, 2024 15:32
@ZicklesZickles
synchronize #51
test
Status Failure
Total duration 2m 33s
Billable time 6m
Artifacts

ci-cd.yml

on: pull_request
install dependencies (pnpm)
10s
install dependencies (pnpm)
check linting (eslint)
16s
check linting (eslint)
check linting (prettier)
20s
check linting (prettier)
Check Coverage
0s
Check Coverage
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 12 warnings
src/API/getPlayer.test.ts > getPlayer (guild): src/Private/Requests.ts#L54
AxiosError: Request failed with status code 429 ❯ settle node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12 ❯ IncomingMessage.handleStreamEnd node_modules/.pnpm/[email protected]/node_modules/axios/lib/adapters/http.js:599:11 ❯ Axios.request node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/Axios.js:45:41 ❯ Requests.request src/Private/Requests.ts:54:17 ❯ getPlayer.execute src/API/getPlayer.ts:16:17 ❯ src/API/getPlayer.test.ts:73:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { description: undefined, number: undefined, fileName: undefined, lineNumber: undefined, columnNumber: undefined, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'API-Key': '***', 'User-Agent': 'axios/1.7.5', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'get', url: 'https://api.hypixel.net/v2/player?uuid=14727faefbdc4aff848cd2713eb9939e' }, code: 'ERR_BAD_REQUEST', status: 429 }
src/API/getPlayer.test.ts > getPlayer (houses): src/Private/Requests.ts#L54
AxiosError: Request failed with status code 429 ❯ settle node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12 ❯ IncomingMessage.handleStreamEnd node_modules/.pnpm/[email protected]/node_modules/axios/lib/adapters/http.js:599:11 ❯ Axios.request node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/Axios.js:45:41 ❯ Requests.request src/Private/Requests.ts:54:17 ❯ getPlayer.execute src/API/getPlayer.ts:16:17 ❯ src/API/getPlayer.test.ts:86:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { description: undefined, number: undefined, fileName: undefined, lineNumber: undefined, columnNumber: undefined, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'API-Key': '***', 'User-Agent': 'axios/1.7.5', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'get', url: 'https://api.hypixel.net/v2/player?uuid=14727faefbdc4aff848cd2713eb9939e' }, code: 'ERR_BAD_REQUEST', status: 429 }
src/API/getPlayer.test.ts > getPlayer (recent games): src/Private/Requests.ts#L54
AxiosError: Request failed with status code 429 ❯ settle node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12 ❯ IncomingMessage.handleStreamEnd node_modules/.pnpm/[email protected]/node_modules/axios/lib/adapters/http.js:599:11 ❯ Axios.request node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/Axios.js:45:41 ❯ Requests.request src/Private/Requests.ts:54:17 ❯ getPlayer.execute src/API/getPlayer.ts:16:17 ❯ src/API/getPlayer.test.ts:103:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { description: undefined, number: undefined, fileName: undefined, lineNumber: undefined, columnNumber: undefined, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'API-Key': '***', 'User-Agent': 'axios/1.7.5', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'get', url: 'https://api.hypixel.net/v2/player?uuid=14727faefbdc4aff848cd2713eb9939e' }, code: 'ERR_BAD_REQUEST', status: 429 }
src/API/getPlayer.test.ts > getPlayer: src/Private/Requests.ts#L54
AxiosError: Request failed with status code 429 ❯ settle node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12 ❯ IncomingMessage.handleStreamEnd node_modules/.pnpm/[email protected]/node_modules/axios/lib/adapters/http.js:599:11 ❯ Axios.request node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/Axios.js:45:41 ❯ Requests.request src/Private/Requests.ts:54:17 ❯ getPlayer.execute src/API/getPlayer.ts:16:17 ❯ src/API/getPlayer.test.ts:120:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { description: undefined, number: undefined, fileName: undefined, lineNumber: undefined, columnNumber: undefined, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'API-Key': '***', 'User-Agent': 'axios/1.7.5', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'get', url: 'https://api.hypixel.net/v2/player?uuid=14727faefbdc4aff848cd2713eb9939e' }, code: 'ERR_BAD_REQUEST', status: 429 }
src/API/getSkyblockAuction.test.ts > getSkyblockAuction (Player): src/API/getSkyblockAuction.test.ts#L185
AssertionError: expected undefined not to be undefined ❯ src/API/getSkyblockAuction.test.ts:185:29 ❯ src/API/getSkyblockAuction.test.ts:179:18 ❯ src/API/getSkyblockAuction.test.ts:139:8
src/API/getStatus.test.ts > getStatus: src/Private/Requests.ts#L54
AxiosError: Request failed with status code 429 ❯ settle node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12 ❯ IncomingMessage.handleStreamEnd node_modules/.pnpm/[email protected]/node_modules/axios/lib/adapters/http.js:599:11 ❯ Axios.request node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/Axios.js:45:41 ❯ Requests.request src/Private/Requests.ts:54:17 ❯ getStatus.execute src/API/getStatus.ts:15:17 ❯ src/API/getStatus.test.ts:20:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { description: undefined, number: undefined, fileName: undefined, lineNumber: undefined, columnNumber: undefined, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'API-Key': '***', 'User-Agent': 'axios/1.7.5', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'get', url: 'https://api.hypixel.net/v2/status?uuid=14727faefbdc4aff848cd2713eb9939e' }, code: 'ERR_BAD_REQUEST', status: 429 }
src/structures/Player.test.ts > Player: src/structures/MiniGames/ArenaBrawl.ts#L15
TypeError: Cannot read properties of undefined (reading 'damage_1v1') ❯ new ArenaBrawlMode src/structures/MiniGames/ArenaBrawl.ts:15:19 ❯ new ArenaBrawl src/structures/MiniGames/ArenaBrawl.ts:45:19 ❯ new Player src/structures/Player.ts:181:14 ❯ src/structures/Player.test.ts:10:16
tests
Process completed with exit code 1.
install dependencies (pnpm)
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
check linting (eslint)
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
check linting (eslint): src/API/getSkyblockFireSales.test.ts#L23
Identifier 'item_id' is not in camel case
check linting (eslint): src/API/getSkyblockFireSales.test.ts#L24
Identifier 'item_id' is not in camel case
check linting (eslint): src/Client.ts#L9
'Client' was used before it was defined
check linting (eslint): src/structures/SkyBlock/Bazaar/Product.test.ts#L6
Identifier 'product_id' is not in camel case
check linting (eslint): src/structures/SkyBlock/Bazaar/Product.test.ts#L7
Identifier 'sell_summary' is not in camel case
check linting (eslint): src/structures/SkyBlock/Bazaar/Product.test.ts#L12
Identifier 'buy_summary' is not in camel case
check linting (eslint): src/structures/SkyBlock/Bazaar/Product.test.ts#L32
Identifier 'quick_status' is not in camel case
check linting (prettier)
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
tests
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/