[Refactor] Rewrite logic to switch, summon and recall Pokemon #22312
tests.yml
on: pull_request
check-path-change-filter
6s
Matrix: Run Tests
Annotations
18 errors
|
test/plugins/api/pokerogue-system-savedata-api.test.ts > Pokerogue System Savedata API > Update > should return an error string on FAILURE:
test/plugins/api/pokerogue-system-savedata-api.test.ts#L117
AssertionError: expected 'Unknown Error' to be 'Failed to update!' // Object.is equality
Expected: "Failed to update!"
Received: "Unknown Error"
❯ test/plugins/api/pokerogue-system-savedata-api.test.ts:117:21
|
|
test/plugins/api/pokerogue-system-savedata-api.test.ts > Pokerogue System Savedata API > Update > should return an empty string on SUCCESS:
test/plugins/api/pokerogue-system-savedata-api.test.ts#L109
AssertionError: expected 'Unknown Error' to be '' // Object.is equality
- Expected
+ Received
+ Unknown Error
❯ test/plugins/api/pokerogue-system-savedata-api.test.ts:109:21
|
|
test/plugins/api/pokerogue-system-savedata-api.test.ts > Pokerogue System Savedata API > Verify > should return system-savedata and report a warning on FAILURE:
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:90:48
|
|
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-savedata-api.test.ts > Pokerogue Savedata API > Update All > should return an error message on FAILURE:
test/plugins/api/pokerogue-savedata-api.test.ts#L40
AssertionError: expected 'Unknown error' to be 'Failed to update all!' // Object.is equality
Expected: "Failed to update all!"
Received: "Unknown error"
❯ test/plugins/api/pokerogue-savedata-api.test.ts:40:21
|
|
test/plugins/api/pokerogue-savedata-api.test.ts > Pokerogue Savedata API > Update All > should return an empty string on SUCCESS:
test/plugins/api/pokerogue-savedata-api.test.ts#L32
AssertionError: expected 'Unknown error' to be '' // Object.is equality
- Expected
+ Received
+ Unknown error
❯ test/plugins/api/pokerogue-savedata-api.test.ts:32:21
|
|
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:
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-account-api.test.ts:17:12
|
|
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
|
|
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
|