Refactor adapters #85
Annotations
20 errors and 6 warnings
src/adapters/SinonServer.spec.ts > SinonServer > addMiddleware > should allow request transformation:
src/adapters/SinonServer.spec.ts#L29
TypeError: server.addMiddleware is not a function
❯ src/adapters/SinonServer.spec.ts:29:20
|
src/adapters/SinonServer.spec.ts > SinonServer > addMiddleware > should allow response transformation:
src/adapters/SinonServer.spec.ts#L75
TypeError: server.addMiddleware is not a function
❯ src/adapters/SinonServer.spec.ts:75:20
|
src/adapters/SinonServer.spec.ts > SinonServer > addMiddleware > should pass request in response interceptor:
src/adapters/SinonServer.spec.ts#L110
TypeError: server.addMiddleware is not a function
❯ src/adapters/SinonServer.spec.ts:110:20
|
src/adapters/SinonServer.spec.ts > SinonServer > handle > should respond a 404 to GET /whatever on non existing collection:
src/adapters/SinonServer.spec.ts#L129
TypeError: server.handle is not a function
❯ src/adapters/SinonServer.spec.ts:129:26
|
src/adapters/SinonServer.spec.ts > SinonServer > handle > should respond to GET /foo by sending all items in collection foo:
src/adapters/SinonServer.spec.ts#L135
TypeError: server.addCollection is not a function
❯ src/adapters/SinonServer.spec.ts:135:20
|
src/adapters/SinonServer.spec.ts > SinonServer > handle > should respond to GET /foo?queryString by sending all items in collection foo satisfying query:
src/adapters/SinonServer.spec.ts#L162
TypeError: server.addCollection is not a function
❯ src/adapters/SinonServer.spec.ts:162:20
|
src/adapters/SinonServer.spec.ts > SinonServer > handle > should respond to GET /foo?queryString with pagination by sending the correct content-range header:
src/adapters/SinonServer.spec.ts#L197
TypeError: server.addCollection is not a function
❯ src/adapters/SinonServer.spec.ts:197:20
|
src/adapters/SinonServer.spec.ts > SinonServer > handle > should respond to GET /foo on an empty collection with a []:
src/adapters/SinonServer.spec.ts#L236
TypeError: server.addCollection is not a function
❯ src/adapters/SinonServer.spec.ts:236:20
|
src/adapters/SinonServer.spec.ts > SinonServer > handle > should respond to POST /foo by adding an item to collection foo:
src/adapters/SinonServer.spec.ts#L250
TypeError: server.addCollection is not a function
❯ src/adapters/SinonServer.spec.ts:250:20
|
src/adapters/SinonServer.spec.ts > SinonServer > handle > should respond to POST /foo by adding an item to collection foo, even if the collection does not exist:
src/adapters/SinonServer.spec.ts#L288
TypeError: server.handle is not a function
❯ src/adapters/SinonServer.spec.ts:288:26
|
typecheck:
src/adapters/SinonServer.spec.ts#L1
Module '"../SimpleRestServer.js"' declares 'BaseResponse' locally, but it is not exported.
|
typecheck:
src/adapters/SinonServer.spec.ts#L1
Property 'addMiddleware' does not exist on type 'SinonServer'.
|
typecheck:
src/adapters/SinonServer.spec.ts#L1
Parameter 'request' implicitly has an 'any' type.
|
typecheck:
src/adapters/SinonServer.spec.ts#L1
Parameter 'context' implicitly has an 'any' type.
|
typecheck:
src/adapters/SinonServer.spec.ts#L1
Parameter 'next' implicitly has an 'any' type.
|
typecheck:
src/adapters/SinonServer.spec.ts#L1
Property 'addCollection' does not exist on type 'SinonServer'.
|
typecheck:
src/adapters/SinonServer.spec.ts#L1
Property 'handle' does not exist on type 'SinonServer'.
|
typecheck:
src/adapters/SinonServer.spec.ts#L1
Property 'handle' does not exist on type 'SinonServer'.
|
typecheck:
src/adapters/SinonServer.spec.ts#L1
Property 'addMiddleware' does not exist on type 'SinonServer'.
|
typecheck:
src/adapters/SinonServer.spec.ts#L1
Parameter 'request' implicitly has an 'any' type.
|
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
unit-test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
unit-test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
typecheck
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
typecheck
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|