Skip to content

Bytter ut buffer med ReadableWebToNodeStream #1480

Bytter ut buffer med ReadableWebToNodeStream

Bytter ut buffer med ReadableWebToNodeStream #1480

Triggered via push November 5, 2024 12:45
Status Failure
Total duration 3m 24s
Artifacts

deploy.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
src/__tests__/api/dokumenter/forhåndsvisning.test.ts > /api/dokumenter/[journalpostId]/[dokumentId]/forhandsvisning > svarer med en liste dokumenter: src/__tests__/api/dokumenter/forhåndsvisning.test.ts#L32
Error: Snapshot `/api/dokumenter/[journalpostId]/[dokumentId]/forhandsvisning > svarer med en liste dokumenter 1` mismatched - Expected + Received - { - "data": [ - 98, - 105, - 110, - 195, - 166, - 114, - ], - "type": "Buffer", + ReadableWebToNodeStream { + "_events": {}, + "_eventsCount": 0, + "_maxListeners": undefined, + "_readableState": ReadableState { + "autoDestroy": false, + "awaitDrain": 0, + "buffer": BufferList { + "head": null, + "length": 0, + "tail": null, + }, + "decoder": null, + "defaultEncoding": "utf8", + "destroyed": false, + "emitClose": true, + "emittedReadable": false, + "encoding": null, + "endEmitted": false, + "ended": false, + "flowing": null, + "highWaterMark": 16384, + "length": 0, + "needReadable": false, + "objectMode": false, + "paused": true, + "pipes": null, + "pipesCount": 0, + "readableListening": false, + "reading": false, + "readingMore": false, + "resumeScheduled": false, + "sync": true, + }, + "bytesRead": 0, + "readable": true, + "reader": ReadableStreamDefaultReader { + Symbol(kType): "ReadableStreamDefaultReader", + Symbol(kState): { + "close": { + "promise": Promise {}, + "reject": [Function], + "resolve": [Function], + }, + "readRequests": [], + "stream": ReadableStream { + Symbol(kType): "ReadableStream", + Symbol(kState): { + "controller": ReadableStreamDefaultController { + Symbol(kType): "ReadableStreamDefaultController", + Symbol(kState): { + "cancelAlgorithm": [Function], + "closeRequested": false, + "highWaterMark": 1, + "pullAgain": false, + "pullAlgorithm": [Function], + "pulling": false, + "queue": [ + { + "size": 1, + "value": Uint8Array [ + 98, + 105, + 110, + 195, + 166, + 114, + ], + }, + ], + "queueTotalSize": 1, + "sizeAlgorithm": [Function], + "started": true, + "stream": ReadableStream { + Symbol(kType): "ReadableStream", + Symbol(kState): [Circular], + Symbol(nodejs.webstream.isClosedPromise): { + "promise": Promise {}, + "reject": [Function], + "resolve": [Function], + }, + Symbol(nodejs.webstream.controllerErrorFunction): [Function], + }, + }, + }, + "disturbed": false, + "reader": [Circular], + "state": "readable", + "storedError": undefined, + "stream": undefined, + "transfer": { + "port": undefined, + "promise": undefined, + "writable": undefined, + }, + }, + Symbol(nodejs.webstream.isClosedPromise): { + "promise": Promise {}, + "reject": [Function], + "resolve": [Function], + }, + Symbol(nodejs.webstream.controllerErrorFunction): [Function], + }, + }, + }, + "released": false, + Symbol(kCapture): false, } ❯ src/__tests__/api/dokumenter/forhåndsvisning.test.ts:32:28
run tests
Process completed with exit code 1.
install
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/