Skip to content

[Refactor] Rewrite logic to switch, summon and recall Pokemon #22313

[Refactor] Rewrite logic to switch, summon and recall Pokemon

[Refactor] Rewrite logic to switch, summon and recall Pokemon #22313

Triggered via pull request November 12, 2025 03:34
Status Failure
Total duration 1m 1s
Artifacts

tests.yml

on: pull_request
check-path-change-filter
7s
check-path-change-filter
Matrix: Run Tests
Fit to window
Zoom out
Zoom in

Annotations

18 errors
Run Tests (2) / Shard
Process completed with exit code 1.
test/plugins/api/pokerogue-daily-api.test.ts > Pokerogue Daily API > Get Rankings Page Count > should return a number on SUCCESS: test/plugins/api/pokerogue-daily-api.test.ts#L83
AssertionError: expected 1 to be 5 // Object.is equality - Expected + Received - 5 + 1 ❯ test/plugins/api/pokerogue-daily-api.test.ts:83:25
test/plugins/api/pokerogue-daily-api.test.ts > Pokerogue Daily API > Get Rankings > should return ranking entries on SUCCESS: test/plugins/api/pokerogue-daily-api.test.ts#L60
AssertionError: expected null to strictly equal [ { rank: 1, score: 999, …(2) }, …(1) ] - Expected: [ { "rank": 1, "score": 999, "username": "Player 1", "wave": 200, }, { "rank": 2, "score": 10, "username": "Player 2", "wave": 1, }, ] + Received: null ❯ test/plugins/api/pokerogue-daily-api.test.ts:60:24
test/plugins/api/pokerogue-daily-api.test.ts > Pokerogue Daily API > Get Seed > should return seed string on SUCCESS: test/plugins/api/pokerogue-daily-api.test.ts#L33
AssertionError: expected null to be 'this-is-a-test-seed' // Object.is equality - Expected: "this-is-a-test-seed" + Received: null ❯ test/plugins/api/pokerogue-daily-api.test.ts:33:20
test/plugins/api/pokerogue-system-savedata-api.test.ts > Pokerogue System Savedata API > Verify > should return null on SUCCESS: src/plugins/api/api-base.ts#L77
TypeError: inferRawHeaders(...) is not iterable (cannot read property undefined) ❯ Object.construct node_modules/.pnpm/@mswjs[email protected]/node_modules/@mswjs/interceptors/src/interceptors/ClientRequest/utils/recordRawHeaders.ts:195:30 ❯ Object.construct node_modules/.pnpm/@mswjs[email protected]/node_modules/@mswjs/interceptors/src/interceptors/ClientRequest/utils/recordRawHeaders.ts:185:33 ❯ globalThis.fetch node_modules/.pnpm/@mswjs[email protected]/node_modules/@mswjs/interceptors/src/interceptors/fetch/index.ts:52:23 ❯ PokerogueSystemSavedataApi.doFetch src/plugins/api/api-base.ts:77:18 ❯ PokerogueSystemSavedataApi.doGet src/plugins/api/api-base.ts:26:17 ❯ PokerogueSystemSavedataApi.verify src/plugins/api/pokerogue-system-savedata-api.ts:46:33 ❯ test/plugins/api/pokerogue-system-savedata-api.test.ts:73:48
test/plugins/api/pokerogue-system-savedata-api.test.ts > Pokerogue System Savedata API > Get > should return system-savedata string on SUCCESS: test/plugins/api/pokerogue-system-savedata-api.test.ts#L43
AssertionError: expected null to be 'TEST SYSTEM SAVEDATA' // Object.is equality - Expected: "TEST SYSTEM SAVEDATA" + Received: null ❯ test/plugins/api/pokerogue-system-savedata-api.test.ts:43:24
test/plugins/api/pokerogue-session-savedata-api.test.ts: test/test-utils/test-file-initialization.ts#L109
Invariant Violation: Failed to patch the "XMLHttpRequest" module: already patched. ❯ _XMLHttpRequestInterceptor.apply node_modules/.pnpm/@mswjs[email protected]/node_modules/@mswjs/interceptors/src/Interceptor.ts:130:10 ❯ BatchInterceptor.setup node_modules/.pnpm/@mswjs[email protected]/node_modules/@mswjs/interceptors/src/BatchInterceptor.ts:44:19 ❯ BatchInterceptor.apply node_modules/.pnpm/@mswjs[email protected]/node_modules/@mswjs/interceptors/src/Interceptor.ts:130:10 ❯ SetupServerApi.listen node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/msw/src/node/SetupServerCommonApi.ts:144:22 ❯ initServerForApiTests test/test-utils/test-file-initialization.ts:109:17 ❯ test/plugins/api/pokerogue-session-savedata-api.test.ts:22:12
test/plugins/api/pokerogue-admin-api.test.ts: test/test-utils/test-file-initialization.ts#L109
Invariant Violation: Failed to patch the "XMLHttpRequest" module: already patched. ❯ _XMLHttpRequestInterceptor.apply node_modules/.pnpm/@mswjs[email protected]/node_modules/@mswjs/interceptors/src/Interceptor.ts:130:10 ❯ BatchInterceptor.setup node_modules/.pnpm/@mswjs[email protected]/node_modules/@mswjs/interceptors/src/BatchInterceptor.ts:44:19 ❯ BatchInterceptor.apply node_modules/.pnpm/@mswjs[email protected]/node_modules/@mswjs/interceptors/src/Interceptor.ts:130:10 ❯ SetupServerApi.listen node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/msw/src/node/SetupServerCommonApi.ts:144:22 ❯ initServerForApiTests test/test-utils/test-file-initialization.ts:109:17 ❯ test/plugins/api/pokerogue-admin-api.test.ts:19:12
test/plugins/api/pokerogue-account-api.test.ts > Pokerogue Account API > Login > should return error message and report a warning on FAILURE: test/plugins/api/pokerogue-account-api.test.ts#L118
AssertionError: expected 'Unknown error!' to be 'Password is incorrect' // Object.is equality Expected: "Password is incorrect" Received: "Unknown error!" ❯ test/plugins/api/pokerogue-account-api.test.ts:118:21
test/plugins/api/pokerogue-account-api.test.ts > Pokerogue Account API > Login > should return null and set the cookie on SUCCESS: test/plugins/api/pokerogue-account-api.test.ts#L107
AssertionError: expected 'Unknown error!' to be null - Expected: null + Received: "Unknown error!" ❯ test/plugins/api/pokerogue-account-api.test.ts:107:21
test/plugins/api/pokerogue-account-api.test.ts > Pokerogue Account API > Register > should return error message on FAILURE: test/plugins/api/pokerogue-account-api.test.ts#L85
AssertionError: expected 'Unknown error!' to be 'Username is already taken' // Object.is equality Expected: "Username is already taken" Received: "Unknown error!" ❯ test/plugins/api/pokerogue-account-api.test.ts:85:21
test/plugins/api/pokerogue-account-api.test.ts > Pokerogue Account API > Register > should return null on SUCCESS: test/plugins/api/pokerogue-account-api.test.ts#L75
AssertionError: expected 'Unknown error!' to be null - Expected: null + Received: "Unknown error!" ❯ test/plugins/api/pokerogue-account-api.test.ts:75:21
test/plugins/api/pokerogue-account-api.test.ts > Pokerogue Account API > Get Info > should return null + status-code anad report a warning on FAILURE: test/plugins/api/pokerogue-account-api.test.ts#L52
AssertionError: expected 500 to be 401 // Object.is equality - Expected + Received - 401 + 500 ❯ test/plugins/api/pokerogue-account-api.test.ts:52:22
test/plugins/api/pokerogue-account-api.test.ts > Pokerogue Account API > Get Info > should return account-info & 200 on SUCCESS: test/plugins/api/pokerogue-account-api.test.ts#L42
AssertionError: expected null to deeply equal { username: 'test', …(4) } - Expected: { "discordId": "23235353543535", "googleId": "1ed1d1d11d1d1d1d1d1", "hasAdminRole": false, "lastSessionSlot": -1, "username": "test", } + Received: null ❯ test/plugins/api/pokerogue-account-api.test.ts:42:27
Run Tests (1) / Shard
Process completed with exit code 1.
Run Tests (4) / Shard
Process completed with exit code 1.
Run Tests (3) / Shard
Process completed with exit code 1.
test/plugins/api/pokerogue-api.test.ts: test/test-utils/test-file-initialization.ts#L109
Invariant Violation: Failed to patch the "XMLHttpRequest" module: already patched. ❯ _XMLHttpRequestInterceptor.apply node_modules/.pnpm/@mswjs[email protected]/node_modules/@mswjs/interceptors/src/Interceptor.ts:130:10 ❯ BatchInterceptor.setup node_modules/.pnpm/@mswjs[email protected]/node_modules/@mswjs/interceptors/src/BatchInterceptor.ts:44:19 ❯ BatchInterceptor.apply node_modules/.pnpm/@mswjs[email protected]/node_modules/@mswjs/interceptors/src/Interceptor.ts:130:10 ❯ SetupServerApi.listen node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/msw/src/node/SetupServerCommonApi.ts:144:22 ❯ initServerForApiTests test/test-utils/test-file-initialization.ts:109:17 ❯ test/plugins/api/pokerogue-api.test.ts:13:12