Feat/integration tests #3
Annotations
4 errors and 1 warning
get-products.test.ts > getAllProducts query:
test/integration/tests/get-products.test.ts#L22
AxiosError: Request failed with status code 500
❯ settle node_modules/axios/lib/core/settle.js:19:12
❯ IncomingMessage.handleStreamEnd node_modules/axios/lib/adapters/http.js:589:11
❯ IncomingMessage.emit node:events:529:35
❯ Axios.request node_modules/axios/lib/core/Axios.js:45:41
❯ get-products.test.ts:22:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_BAD_RESPONSE', config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', 'User-Agent': 'axios/1.6.8', 'Content-Length': '156', 'Accept-Encoding': 'gzip, compress, deflate, br', constructor: 'Function<AxiosHeaders>', set: 'Function<set>', get: 'Function<get>', has: 'Function<has>', delete: 'Function<delete>', clear: 'Function<clear>', normalize: 'Function<normalize>', concat: 'Function<concat>', toJSON: 'Function<toJSON>', toString: 'Function<toString>', getContentType: 'Function<value>', setContentType: 'Function<value>', hasContentType: 'Function<value>', getContentLength: 'Function<value>', setContentLength: 'Function<value>', hasContentLength: 'Function<value>', getAccept: 'Function<value>', setAccept: 'Function<value>', hasAccept: 'Function<value>', getAcceptEncoding: 'Function<value>', setAcceptEncoding: 'Function<value>', hasAcceptEncoding: 'Function<value>', getUserAgent: 'Function<value>', setUserAgent: 'Function<value>', hasUserAgent: 'Function<value>', getAuthorization: 'Function<value>', setAuthorization: 'Function<value>', hasAuthorization: 'Function<value>' }, method: 'post', url: 'http://127.0.0.1:45538/graphql', data: '{"query":"\n query getAllProducts {\n getProducts {\n items {\n name\n id\n price\n supplierId\n }\n }\n }\n"}' }, request: { _events: { abort: 'Function<anonymous>', aborted: 'Function<anonymous>', connect: 'Function<anonymous>', error: 'Function<anonymous>', socket: 'Function<anonymous>', timeout: 'Function<anonymous>', finish: 'Function<requestOnFinish>' }, _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: +0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: '156', _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, socket: { connecting: false, _hadError: false, _parent: null, _host: null, _closeAfterHandlingError: false, _readableState: { state: 266328, highWaterMark: 16384, buffer: { head: null, tail: null, length: +0, constructor: 'Function<BufferList>', push: 'Function<push>', unshift: 'Function<unshift>', shift: 'Function<shift>', clear: 'Function<clear>', join: 'Function<join>', concat: 'Function<concat>', consume: 'Function<consume>', first: 'Function<first>', _getString: 'Function<_getString>', _getBuffer: 'Function<_getBuffer>' }, length: +0, pipes: [], flowing: true, errored: null, defaultEncoding: 'utf8', awaitDrainWriters: null, decoder: null, encoding: null, constructor: 'Function<ReadableState>', objectMode: false, ended: false, endEmitted: false, reading: true, constructed: true, sync: false, needReadable: true, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: false, autoDestroy: true, destroyed: false, closed: false, closeEmitted: false, multiAwaitDrain: false, readingMore: false, dataEmitted: true, pipesCount: +0, paused: false }, _events: { end: 'Function<onReadableStreamEnd>', free: 'Fun
|
get-products.test.ts > getTenFirstProducts with SPL filter query:
test/integration/tests/get-products.test.ts#L46
AxiosError: Request failed with status code 500
❯ settle node_modules/axios/lib/core/settle.js:19:12
❯ IncomingMessage.handleStreamEnd node_modules/axios/lib/adapters/http.js:589:11
❯ IncomingMessage.emit node:events:529:35
❯ Axios.request node_modules/axios/lib/core/Axios.js:45:41
❯ get-products.test.ts:46:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_BAD_RESPONSE', config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', 'User-Agent': 'axios/1.6.8', 'Content-Length': '187', 'Accept-Encoding': 'gzip, compress, deflate, br', constructor: 'Function<AxiosHeaders>', set: 'Function<set>', get: 'Function<get>', has: 'Function<has>', delete: 'Function<delete>', clear: 'Function<clear>', normalize: 'Function<normalize>', concat: 'Function<concat>', toJSON: 'Function<toJSON>', toString: 'Function<toString>', getContentType: 'Function<value>', setContentType: 'Function<value>', hasContentType: 'Function<value>', getContentLength: 'Function<value>', setContentLength: 'Function<value>', hasContentLength: 'Function<value>', getAccept: 'Function<value>', setAccept: 'Function<value>', hasAccept: 'Function<value>', getAcceptEncoding: 'Function<value>', setAcceptEncoding: 'Function<value>', hasAcceptEncoding: 'Function<value>', getUserAgent: 'Function<value>', setUserAgent: 'Function<value>', hasUserAgent: 'Function<value>', getAuthorization: 'Function<value>', setAuthorization: 'Function<value>', hasAuthorization: 'Function<value>' }, method: 'post', url: 'http://127.0.0.1:45538/graphql', data: '{"query":"\n query getTenFirstProducts {\n getProducts {\n items @spl(query: \"id <= 10\") {\n name\n id\n price\n supplierId\n }\n }\n }\n"}' }, request: { _events: { abort: 'Function<anonymous>', aborted: 'Function<anonymous>', connect: 'Function<anonymous>', error: 'Function<anonymous>', socket: 'Function<anonymous>', timeout: 'Function<anonymous>', finish: 'Function<requestOnFinish>' }, _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: +0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: '187', _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, socket: { connecting: false, _hadError: false, _parent: null, _host: null, _closeAfterHandlingError: false, _readableState: { state: 266328, highWaterMark: 16384, buffer: { head: null, tail: null, length: +0, constructor: 'Function<BufferList>', push: 'Function<push>', unshift: 'Function<unshift>', shift: 'Function<shift>', clear: 'Function<clear>', join: 'Function<join>', concat: 'Function<concat>', consume: 'Function<consume>', first: 'Function<first>', _getString: 'Function<_getString>', _getBuffer: 'Function<_getBuffer>' }, length: +0, pipes: [], flowing: true, errored: null, defaultEncoding: 'utf8', awaitDrainWriters: null, decoder: null, encoding: null, constructor: 'Function<ReadableState>', objectMode: false, ended: false, endEmitted: false, reading: true, constructed: true, sync: false, needReadable: true, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: false, autoDestroy: true, destroyed: false, closed: false, closeEmitted: false, multiAwaitDrain: false, readingMore: false, dataEmitted: true, pipesCount: +0, paused: false }, _events: { end: 'Function<on
|
get-products.test.ts > Follow hateoas link to get Suppier info:
test/integration/tests/get-products.test.ts#L69
AxiosError: Request failed with status code 500
❯ settle node_modules/axios/lib/core/settle.js:19:12
❯ IncomingMessage.handleStreamEnd node_modules/axios/lib/adapters/http.js:589:11
❯ IncomingMessage.emit node:events:529:35
❯ Axios.request node_modules/axios/lib/core/Axios.js:45:41
❯ get-products.test.ts:69:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_BAD_RESPONSE', config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', 'User-Agent': 'axios/1.6.8', 'Content-Length': '180', 'Accept-Encoding': 'gzip, compress, deflate, br', constructor: 'Function<AxiosHeaders>', set: 'Function<set>', get: 'Function<get>', has: 'Function<has>', delete: 'Function<delete>', clear: 'Function<clear>', normalize: 'Function<normalize>', concat: 'Function<concat>', toJSON: 'Function<toJSON>', toString: 'Function<toString>', getContentType: 'Function<value>', setContentType: 'Function<value>', hasContentType: 'Function<value>', getContentLength: 'Function<value>', setContentLength: 'Function<value>', hasContentLength: 'Function<value>', getAccept: 'Function<value>', setAccept: 'Function<value>', hasAccept: 'Function<value>', getAcceptEncoding: 'Function<value>', setAcceptEncoding: 'Function<value>', hasAcceptEncoding: 'Function<value>', getUserAgent: 'Function<value>', setUserAgent: 'Function<value>', hasUserAgent: 'Function<value>', getAuthorization: 'Function<value>', setAuthorization: 'Function<value>', hasAuthorization: 'Function<value>' }, method: 'post', url: 'http://127.0.0.1:45538/graphql', data: '{"query":"\n query getProductAndSupplierInfo {\n getProductById(id: 1) {\n id\n name\n price\n supplier {\n name\n id\n }\n }\n }\n"}' }, request: { _events: { abort: 'Function<anonymous>', aborted: 'Function<anonymous>', connect: 'Function<anonymous>', error: 'Function<anonymous>', socket: 'Function<anonymous>', timeout: 'Function<anonymous>', finish: 'Function<requestOnFinish>' }, _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: +0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: '180', _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, socket: { connecting: false, _hadError: false, _parent: null, _host: null, _closeAfterHandlingError: false, _readableState: { state: 266328, highWaterMark: 16384, buffer: { head: null, tail: null, length: +0, constructor: 'Function<BufferList>', push: 'Function<push>', unshift: 'Function<unshift>', shift: 'Function<shift>', clear: 'Function<clear>', join: 'Function<join>', concat: 'Function<concat>', consume: 'Function<consume>', first: 'Function<first>', _getString: 'Function<_getString>', _getBuffer: 'Function<_getBuffer>' }, length: +0, pipes: [], flowing: true, errored: null, defaultEncoding: 'utf8', awaitDrainWriters: null, decoder: null, encoding: null, constructor: 'Function<ReadableState>', objectMode: false, ended: false, endEmitted: false, reading: true, constructed: true, sync: false, needReadable: true, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: false, autoDestroy: true, destroyed: false, closed: false, closeEmitted: false, multiAwaitDrain: false, readingMore: false, dataEmitted: true, pipesCount: +0, paused: false }, _events: { end: 'Function<onReadabl
|
integration-tests (18.x)
Process completed with exit code 1.
|
integration-tests (18.x)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|