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": {"close": undefined, "data": undefined, "drain": undefined, "end": [Function onReadableStreamEnd], "error": undefined, "finish": undefined, "prefinish": undefined, "readable": undefined}, "_eventsCount": 1, "_hadError": false, "_host": null, "_isStdio": true, "_maxListeners": undefined, "_parent": null, "_pendingData": null, "_pendingEncoding": "", "_readableState": {"awaitDrainWriters": null, "buffer": [], "bufferIndex": 0, "highWaterMark": 16384, "length": 0, "pipes": [], "readable": false, Symbol(kState): 1054468}, "_server": null, "_sockname": null, "_type": "pipe", "_writableState": {"bufferedIndex": 0, "corked": 0, "highWaterMark": 16384, "length": 0, "onwrite": [Function bound onwrite], "pendingcb": 0, "writelen": 0, Symbol(kState): 17564420, Symbol(kBufferedValue): null}, "_write": [Function anonymous], "_writev": null, "allowHalfOpen": false, "connecting": false, "destroySoon": [Function anonymous], "fd": 1, "server": null, Symbol(async_id_symbol): 34, Symbol(kHandle): {Symbol(owner_symbol): {"_closeAfterHandlingError": false, "_destroy": [Function dummyDestroy], "_events": {"close": undefined, "data": undefined, "drain": undefined, "end": [Function onReadableStreamEnd], "error": undefined, "finish": undefined, "prefinish": undefined, "readable": undefined}, "_eventsCount": 1, "_hadError": false, "_host": null, "_isStdio": true, "_maxListeners": undefined, "_parent": null, "_pendingData": null, "_pendingEncoding": "", "_readableState": {"awaitDrainWriters": null, "buffer": [], "bufferIndex": 0, "highWaterMark": 16384, "length": 0, "pipes": [], "readable": false, Symbol(kState): 1054468}, "_server": null, "_sockname": null, "_type": "pipe", "_writableState": {"bufferedIndex": 0, "corked": 0, "highWaterMark": 16384, "length": 0, "onwrite": [Function bound onwrite], "pendingcb": 0, "writelen": 0, Symbol(kState): 17564420, Symbol(kBufferedValue): null}, "_write": [Function anonymous], "_writev": null, "allowHalfOpen": false, "connecting": false, "destroySoon": [Function anonymous], "fd": 1, "server": null, Symbol(async_id_symbol): 34, Symbol(kHandle): [Circular], Symbol(lastWriteQueueSize): 0, Symbol(timeout): null, Symbol(kBuffer): null, Symbol(kBufferCb): null, Symbol(kBufferGen): null, Symbol(shapeMode): true, 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(shapeMode): true, 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": {"close": undefined, "data": undefined, "drain": undefined, "end": [Function onReadableStreamEnd], "error": undefined, "finish": undefined, "prefinish": undefined, "readable": undefined}, "_eventsCount": 1, "_hadError": false, "_host": null, "_isStdio": true, "_maxListeners": undefined, "_parent": null, "_pendingData": null, "_pendingEncoding": "", "_readableState": {"awaitDrainWriters": null, "buffer": [], "bufferIndex": 0, "highWaterMark": 16384, "length": 0, "pipes": [], "readable": false, Symbol(kState): 1054468}, "_server": null, "_sockname": null, "_type": "pipe", "_writableState": {"bufferedIndex": 0, "corked": 0, "highWaterMark": 16384, "length": 0, "onwrite": [Function bound onwrite], "pendingcb": 0, "writelen": 0, Symbol(kState): 17564420, Symbol(kBufferedValue): null}, "_write": [Function anonymous], "_writev": null, "allowHalfOpen": false, "connecting": false, "destroySoon": [Function anonymous], "fd": 1, "server": null, Symbol(async_id_symbol): 10, Symbol(kHandle): {Symbol(owner_symbol): {"_closeAfterHandlingError": false, "_destroy": [Function dummyDestroy], "_events": {"close": undefined, "data": undefined, "drain": undefined, "end": [Function onReadableStreamEnd], "error": undefined, "finish": undefined, "prefinish": undefined, "readable": undefined}, "_eventsCount": 1, "_hadError": false, "_host": null, "_isStdio": true, "_maxListeners": undefined, "_parent": null, "_pendingData": null, "_pendingEncoding": "", "_readableState": {"awaitDrainWriters": null, "buffer": [], "bufferIndex": 0, "highWaterMark": 16384, "length": 0, "pipes": [], "readable": false, Symbol(kState): 1054468}, "_server": null, "_sockname": null, "_type": "pipe", "_writableState": {"bufferedIndex": 0, "corked": 0, "highWaterMark": 16384, "length": 0, "onwrite": [Function bound onwrite], "pendingcb": 0, "writelen": 0, Symbol(kState): 17564420, Symbol(kBufferedValue): null}, "_write": [Function anonymous], "_writev": null, "allowHalfOpen": false, "connecting": false, "destroySoon": [Function anonymous], "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(shapeMode): true, 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(shapeMode): true, 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": {"close": undefined, "data": undefined, "drain": undefined, "end": [Function onReadableStreamEnd], "error": undefined, "finish": undefined, "prefinish": undefined, "readable": undefined}, "_eventsCount": 1, "_hadError": false, "_host": null, "_isStdio": true, "_maxListeners": undefined, "_parent": null, "_pendingData": null, "_pendingEncoding": "", "_readableState": {"awaitDrainWriters": null, "buffer": [], "bufferIndex": 0, "highWaterMark": 16384, "length": 0, "pipes": [], "readable": false, Symbol(kState): 1054468}, "_server": null, "_sockname": null, "_type": "pipe", "_writableState": {"bufferedIndex": 0, "corked": 0, "highWaterMark": 16384, "length": 0, "onwrite": [Function bound onwrite], "pendingcb": 0, "writelen": 0, Symbol(kState): 17564420, Symbol(kBufferedValue): null}, "_write": [Function anonymous], "_writev": null, "allowHalfOpen": false, "connecting": false, "destroySoon": [Function anonymous], "fd": 1, "server": null, Symbol(async_id_symbol): 10, Symbol(kHandle): {Symbol(owner_symbol): {"_closeAfterHandlingError": false, "_destroy": [Function dummyDestroy], "_events": {"close": undefined, "data": undefined, "drain": undefined, "end": [Function onReadableStreamEnd], "error": undefined, "finish": undefined, "prefinish": undefined, "readable": undefined}, "_eventsCount": 1, "_hadError": false, "_host": null, "_isStdio": true, "_maxListeners": undefined, "_parent": null, "_pendingData": null, "_pendingEncoding": "", "_readableState": {"awaitDrainWriters": null, "buffer": [], "bufferIndex": 0, "highWaterMark": 16384, "length": 0, "pipes": [], "readable": false, Symbol(kState): 1054468}, "_server": null, "_sockname": null, "_type": "pipe", "_writableState": {"bufferedIndex": 0, "corked": 0, "highWaterMark": 16384, "length": 0, "onwrite": [Function bound onwrite], "pendingcb": 0, "writelen": 0, Symbol(kState): 17564420, Symbol(kBufferedValue): null}, "_write": [Function anonymous], "_writev": null, "allowHalfOpen": false, "connecting": false, "destroySoon": [Function anonymous], "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(shapeMode): true, 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(shapeMode): true, 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