Skip to content

Commit 1c2abd6

Browse files
committed
Add "gate !enableShallowPropDiffing" for tests that will fail if enableShallowPropDiffing is set to true.
1 parent c15e54b commit 1c2abd6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/react-native-renderer/src/__tests__/ReactNativeAttributePayloadFabric-test.internal.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ describe('ReactNativeAttributePayload.diff', () => {
215215
expect(diffB).toBeCalledWith([3], [4]);
216216
});
217217

218+
// @gate !enableShallowPropDiffing
218219
it('should not use the diff attribute on addition/removal', () => {
219220
const diffA = jest.fn();
220221
const diffB = jest.fn();
@@ -225,6 +226,7 @@ describe('ReactNativeAttributePayload.diff', () => {
225226
expect(diffB).not.toBeCalled();
226227
});
227228

229+
// @gate !enableShallowPropDiffing
228230
it('should do deep diffs of Objects by default', () => {
229231
expect(
230232
diff(
@@ -422,6 +424,7 @@ describe('ReactNativeAttributePayload.diff', () => {
422424
).toEqual(null);
423425
});
424426

427+
// @gate !enableShallowPropDiffing
425428
it('should skip deeply-nested changed functions', () => {
426429
expect(
427430
diff(

0 commit comments

Comments
 (0)