fix: correctly copy getters in deepCyclicCopy
#14048
Annotations
4 errors and 2 warnings
undefined#L1
expect(received).toBe(expected) // Object.is equality
If it should pass with deep equality, replace "toBe" with "toStrictEqual"
Expected: {"_closeAfterHandlingError": false, "_destroy": [Function dummyDestroy], "_events": {"end": [Function onReadableStreamEnd]}, "_eventsCount": 1, "_hadError": false, "_host": null, "_isStdio": true, "_maxListeners": undefined, "_parent": null, "_pendingData": null, "_pendingEncoding": "", "_readableState": {"awaitDrainWriters": null, "buffer": {"head": null, "length": 0, "tail": null}, "decoder": null, "defaultEncoding": "utf8", "encoding": null, "errored": null, "flowing": null, "highWaterMark": 16384, "length": 0, "pipes": [], "readable": false, "state": 4150, Symbol(kPaused): null}, "_server": null, "_sockname": null, "_type": "pipe", "_writableState": {"afterWriteTickInfo": null, "allBuffers": true, "allNoop": true, "autoDestroy": true, "bufferProcessing": false, "buffered": [], "bufferedIndex": 0, "closeEmitted": false, "closed": false, "constructed": true, "corked": 0, "decodeStrings": false, "defaultEncoding": "utf8", "destroyed": false, "emitClose": false, "ended": false, "ending": false, "errorEmitted": false, "errored": null, "finalCalled": false, "finished": false, "highWaterMark": 16384, "length": 0, "needDrain": false, "objectMode": false, "onwrite": [Function bound onwrite], "pendingcb": 0, "prefinished": false, "sync": true, "writecb": null, "writelen": 0, "writing": false, Symbol(kOnFinished): []}, "allowHalfOpen": false, "connecting": false, "destroySoon": [Function destroy], "fd": 1, "server": null, Symbol(async_id_symbol): 146, Symbol(kHandle): {Symbol(owner_symbol): {"_closeAfterHandlingError": false, "_destroy": [Function dummyDestroy], "_events": {"end": [Function onReadableStreamEnd]}, "_eventsCount": 1, "_hadError": false, "_host": null, "_isStdio": true, "_maxListeners": undefined, "_parent": null, "_pendingData": null, "_pendingEncoding": "", "_readableState": {"awaitDrainWriters": null, "buffer": {"head": null, "length": 0, "tail": null}, "decoder": null, "defaultEncoding": "utf8", "encoding": null, "errored": null, "flowing": null, "highWaterMark": 16384, "length": 0, "pipes": [], "readable": false, "state": 4150, Symbol(kPaused): null}, "_server": null, "_sockname": null, "_type": "pipe", "_writableState": {"afterWriteTickInfo": null, "allBuffers": true, "allNoop": true, "autoDestroy": true, "bufferProcessing": false, "buffered": [], "bufferedIndex": 0, "closeEmitted": false, "closed": false, "constructed": true, "corked": 0, "decodeStrings": false, "defaultEncoding": "utf8", "destroyed": false, "emitClose": false, "ended": false, "ending": false, "errorEmitted": false, "errored": null, "finalCalled": false, "finished": false, "highWaterMark": 16384, "length": 0, "needDrain": false, "objectMode": false, "onwrite": [Function bound onwrite], "pendingcb": 0, "prefinished": false, "sync": true, "writecb": null, "writelen": 0, "writing": false, Symbol(kOnFinished): []}, "allowHalfOpen": false, "connecting": false, "destroySoon": [Function destroy], "fd": 1, "server": null, Symbol(async_id_symbol): 146, Symbol(kHandle): [Circular], Symbol(lastWriteQueueSize): 0, Symbol(timeout): null, Symbol(kBuffer): null, Symbol(kBufferCb): null, Symbol(kBufferGen): null, Symbol(kCapture): false, Symbol(kSetNoDelay): false, Symbol(kSetKeepAlive): false, Symbol(kSetKeepAliveInitialDelay): 0, Symbol(kBytesRead): 0, Symbol(kBytesWritten): 0}}, Symbol(lastWriteQueueSize): 0, Symbol(timeout): null, Symbol(kBuffer): null, Symbol(kBufferCb): null, Symbol(kBufferGen): null, Symbol(kCapture): false, Symbol(kSetNoDelay): false, Symbol(kSetKeepAlive): false, Symbol(kSetKeepAliveInitialDelay): 0, Symbol(kBytesRead): 0, Symbol(kBytesWritten): 0}
Received: serializes to the same string
at Object.toBe (packages/jest-util/src/__tests__/createProcessObject.test.ts:38:26)
|
undefined#L1
expect(received).toBe(expected) // Object.is equality
If it should pass with deep equality, replace "toBe" with "toStrictEqual"
Expected: {"_closeAfterHandlingError": false, "_destroy": [Function dummyDestroy], "_events": {"end": [Function onReadableStreamEnd]}, "_eventsCount": 1, "_hadError": false, "_host": null, "_isStdio": true, "_maxListeners": undefined, "_parent": null, "_pendingData": null, "_pendingEncoding": "", "_readableState": {"awaitDrainWriters": null, "buffer": {"head": null, "length": 0, "tail": null}, "decoder": null, "defaultEncoding": "utf8", "encoding": null, "errored": null, "flowing": null, "highWaterMark": 16384, "length": 0, "pipes": [], "readable": false, "state": 4150, Symbol(kPaused): null}, "_server": null, "_sockname": null, "_type": "pipe", "_writableState": {"afterWriteTickInfo": null, "allBuffers": true, "allNoop": true, "autoDestroy": true, "bufferProcessing": false, "buffered": [], "bufferedIndex": 0, "closeEmitted": false, "closed": false, "constructed": true, "corked": 0, "decodeStrings": false, "defaultEncoding": "utf8", "destroyed": false, "emitClose": false, "ended": false, "ending": false, "errorEmitted": false, "errored": null, "finalCalled": false, "finished": false, "highWaterMark": 16384, "length": 0, "needDrain": false, "objectMode": false, "onwrite": [Function bound onwrite], "pendingcb": 0, "prefinished": false, "sync": true, "writecb": null, "writelen": 0, "writing": false, Symbol(kOnFinished): []}, "allowHalfOpen": false, "connecting": false, "destroySoon": [Function destroy], "fd": 1, "server": null, Symbol(async_id_symbol): 10, Symbol(kHandle): {Symbol(owner_symbol): {"_closeAfterHandlingError": false, "_destroy": [Function dummyDestroy], "_events": {"end": [Function onReadableStreamEnd]}, "_eventsCount": 1, "_hadError": false, "_host": null, "_isStdio": true, "_maxListeners": undefined, "_parent": null, "_pendingData": null, "_pendingEncoding": "", "_readableState": {"awaitDrainWriters": null, "buffer": {"head": null, "length": 0, "tail": null}, "decoder": null, "defaultEncoding": "utf8", "encoding": null, "errored": null, "flowing": null, "highWaterMark": 16384, "length": 0, "pipes": [], "readable": false, "state": 4150, Symbol(kPaused): null}, "_server": null, "_sockname": null, "_type": "pipe", "_writableState": {"afterWriteTickInfo": null, "allBuffers": true, "allNoop": true, "autoDestroy": true, "bufferProcessing": false, "buffered": [], "bufferedIndex": 0, "closeEmitted": false, "closed": false, "constructed": true, "corked": 0, "decodeStrings": false, "defaultEncoding": "utf8", "destroyed": false, "emitClose": false, "ended": false, "ending": false, "errorEmitted": false, "errored": null, "finalCalled": false, "finished": false, "highWaterMark": 16384, "length": 0, "needDrain": false, "objectMode": false, "onwrite": [Function bound onwrite], "pendingcb": 0, "prefinished": false, "sync": true, "writecb": null, "writelen": 0, "writing": false, Symbol(kOnFinished): []}, "allowHalfOpen": false, "connecting": false, "destroySoon": [Function destroy], "fd": 1, "server": null, Symbol(async_id_symbol): 10, Symbol(kHandle): [Circular], Symbol(lastWriteQueueSize): 0, Symbol(timeout): null, Symbol(kBuffer): null, Symbol(kBufferCb): null, Symbol(kBufferGen): null, Symbol(kCapture): false, Symbol(kSetNoDelay): false, Symbol(kSetKeepAlive): false, Symbol(kSetKeepAliveInitialDelay): 0, Symbol(kBytesRead): 0, Symbol(kBytesWritten): 0}}, Symbol(lastWriteQueueSize): 0, Symbol(timeout): null, Symbol(kBuffer): null, Symbol(kBufferCb): null, Symbol(kBufferGen): null, Symbol(kCapture): false, Symbol(kSetNoDelay): false, Symbol(kSetKeepAlive): false, Symbol(kSetKeepAliveInitialDelay): 0, Symbol(kBytesRead): 0, Symbol(kBytesWritten): 0}
Received: serializes to the same string
at Object.toBe (packages/jest-util/src/__tests__/createProcessObject.test.ts:38:26)
|
undefined#L1
expect(received).toBe(expected) // Object.is equality
If it should pass with deep equality, replace "toBe" with "toStrictEqual"
Expected: {"_closeAfterHandlingError": false, "_destroy": [Function dummyDestroy], "_events": {"end": [Function onReadableStreamEnd]}, "_eventsCount": 1, "_hadError": false, "_host": null, "_isStdio": true, "_maxListeners": undefined, "_parent": null, "_pendingData": null, "_pendingEncoding": "", "_readableState": {"awaitDrainWriters": null, "buffer": {"head": null, "length": 0, "tail": null}, "decoder": null, "defaultEncoding": "utf8", "encoding": null, "errored": null, "flowing": null, "highWaterMark": 16384, "length": 0, "pipes": [], "readable": false, "state": 4150, Symbol(kPaused): null}, "_server": null, "_sockname": null, "_type": "pipe", "_writableState": {"afterWriteTickInfo": null, "allBuffers": true, "allNoop": true, "autoDestroy": true, "bufferProcessing": false, "buffered": [], "bufferedIndex": 0, "closeEmitted": false, "closed": false, "constructed": true, "corked": 0, "decodeStrings": false, "defaultEncoding": "utf8", "destroyed": false, "emitClose": false, "ended": false, "ending": false, "errorEmitted": false, "errored": null, "finalCalled": false, "finished": false, "highWaterMark": 16384, "length": 0, "needDrain": false, "objectMode": false, "onwrite": [Function bound onwrite], "pendingcb": 0, "prefinished": false, "sync": true, "writecb": null, "writelen": 0, "writing": false, Symbol(kOnFinished): []}, "allowHalfOpen": false, "connecting": false, "destroySoon": [Function destroy], "fd": 1, "server": null, Symbol(async_id_symbol): 10, Symbol(kHandle): {Symbol(owner_symbol): {"_closeAfterHandlingError": false, "_destroy": [Function dummyDestroy], "_events": {"end": [Function onReadableStreamEnd]}, "_eventsCount": 1, "_hadError": false, "_host": null, "_isStdio": true, "_maxListeners": undefined, "_parent": null, "_pendingData": null, "_pendingEncoding": "", "_readableState": {"awaitDrainWriters": null, "buffer": {"head": null, "length": 0, "tail": null}, "decoder": null, "defaultEncoding": "utf8", "encoding": null, "errored": null, "flowing": null, "highWaterMark": 16384, "length": 0, "pipes": [], "readable": false, "state": 4150, Symbol(kPaused): null}, "_server": null, "_sockname": null, "_type": "pipe", "_writableState": {"afterWriteTickInfo": null, "allBuffers": true, "allNoop": true, "autoDestroy": true, "bufferProcessing": false, "buffered": [], "bufferedIndex": 0, "closeEmitted": false, "closed": false, "constructed": true, "corked": 0, "decodeStrings": false, "defaultEncoding": "utf8", "destroyed": false, "emitClose": false, "ended": false, "ending": false, "errorEmitted": false, "errored": null, "finalCalled": false, "finished": false, "highWaterMark": 16384, "length": 0, "needDrain": false, "objectMode": false, "onwrite": [Function bound onwrite], "pendingcb": 0, "prefinished": false, "sync": true, "writecb": null, "writelen": 0, "writing": false, Symbol(kOnFinished): []}, "allowHalfOpen": false, "connecting": false, "destroySoon": [Function destroy], "fd": 1, "server": null, Symbol(async_id_symbol): 10, Symbol(kHandle): [Circular], Symbol(lastWriteQueueSize): 0, Symbol(timeout): null, Symbol(kBuffer): null, Symbol(kBufferCb): null, Symbol(kBufferGen): null, Symbol(kCapture): false, Symbol(kSetNoDelay): false, Symbol(kSetKeepAlive): false, Symbol(kSetKeepAliveInitialDelay): 0, Symbol(kBytesRead): 0, Symbol(kBytesWritten): 0}}, Symbol(lastWriteQueueSize): 0, Symbol(timeout): null, Symbol(kBuffer): null, Symbol(kBufferCb): null, Symbol(kBufferGen): null, Symbol(kCapture): false, Symbol(kSetNoDelay): false, Symbol(kSetKeepAlive): false, Symbol(kSetKeepAliveInitialDelay): 0, Symbol(kBytesRead): 0, Symbol(kBytesWritten): 0}
Received: serializes to the same string
at Object.toBe (packages/jest-util/src/__tests__/createProcessObject.test.ts:38:26)
|
|
|
|
This job failed
Loading