fix(client): createClient doesn't copy all settings of client #4497
run-tests.yml
on: pull_request
typecheck
28s
lint
50s
Matrix: test
Annotations
16 errors and 10 warnings
typecheck:
packages/clients/src/scw/__tests__/api.test.ts#L11
Expected 1 arguments, but got 0.
|
typecheck:
packages/clients/src/scw/__tests__/client.test.ts#L76
Expected 1 arguments, but got 0.
|
typecheck
Process completed with exit code 2.
|
packages/clients/src/scw/__tests__/api.test.ts > API > binds methods properly:
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
|
packages/clients/src/scw/__tests__/client.test.ts > createClient > initializes without throwing:
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
|
test (node, 18)
Process completed with exit code 1.
|
test (jsdom, 20)
The job was canceled because "node_18" failed.
|
packages/clients/src/scw/__tests__/api.test.ts > API > binds methods properly:
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
|
packages/clients/src/scw/__tests__/client.test.ts > createClient > initializes without throwing:
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
|
test (jsdom, 20)
The operation was canceled.
|
test (node, 20)
The job was canceled because "node_18" failed.
|
packages/clients/src/scw/__tests__/api.test.ts > API > binds methods properly:
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
|
packages/clients/src/scw/__tests__/client.test.ts > createClient > initializes without throwing:
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
|
test (node, 20)
The operation was canceled.
|
test (jsdom, 18)
The job was canceled because "node_18" failed.
|
test (jsdom, 18)
The operation was canceled.
|
lint:
packages/clients/src/api/account/v2/api.gen.ts#L40
tsdoc-missing-deprecation-message: The @deprecated block must include a deprecation message, e.g. describing the recommended alternative
|
lint:
packages/clients/src/api/account/v2/api.gen.ts#L90
tsdoc-missing-deprecation-message: The @deprecated block must include a deprecation message, e.g. describing the recommended alternative
|
lint:
packages/clients/src/api/account/v2/api.gen.ts#L103
tsdoc-missing-deprecation-message: The @deprecated block must include a deprecation message, e.g. describing the recommended alternative
|
lint:
packages/clients/src/api/account/v2/api.gen.ts#L123
tsdoc-missing-deprecation-message: The @deprecated block must include a deprecation message, e.g. describing the recommended alternative
|
lint:
packages/clients/src/api/account/v2/api.gen.ts#L137
tsdoc-missing-deprecation-message: The @deprecated block must include a deprecation message, e.g. describing the recommended alternative
|
lint:
packages/clients/src/api/account/v2/marshalling.gen.ts#L60
'defaults' is defined but never used
|
lint:
packages/clients/src/api/account/v2/types.gen.ts#L25
Use an `interface` instead of a `type`
|
lint:
packages/clients/src/api/account/v2/types.gen.ts#L34
Use an `interface` instead of a `type`
|
lint:
packages/clients/src/api/account/v2/types.gen.ts#L39
Use an `interface` instead of a `type`
|
lint:
packages/clients/src/api/account/v2/types.gen.ts#L44
Use an `interface` instead of a `type`
|