[Refactor] Rewrite logic to switch, summon and recall Pokemon #22313
Annotations
10 errors
|
Run tests:
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
|
|
Run tests:
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
|
|
Run tests:
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
|
|
Run tests:
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
|
|
Run tests:
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
|
|
Run tests:
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
|
|
Run tests:
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
|
|
Run tests:
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
|
|
Run tests:
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
|
|
Run tests:
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
|
Loading