fix(client): createClient doesn't copy all settings of client #4496
Annotations
3 errors
Run pnpm run test:coverage --environment jsdom:
packages/clients/src/scw/client.ts#L108
TypeError: Cannot read properties of undefined (reading 'interceptors')
❯ Module.createClient packages/clients/src/scw/client.ts:108:41
❯ packages/clients/src/scw/__tests__/api.test.ts:11:31
|
Run pnpm run test:coverage --environment jsdom:
packages/clients/src/scw/__tests__/client.test.ts#L77
AssertionError: expected [Function] to not throw an error but 'TypeError: Cannot read properties of …' was thrown
- Expected:
undefined
+ Received:
"TypeError: Cannot read properties of undefined (reading 'interceptors')"
❯ packages/clients/src/scw/__tests__/client.test.ts:77:12
|
Run pnpm run test:coverage --environment jsdom
Process completed with exit code 1.
|
Loading