Skip to content

Commit

Permalink
Add "@GATE !enableShallowPropDiffing" for tests that will fail if ena…
Browse files Browse the repository at this point in the history
…bleShallowPropDiffing is set to true.
  • Loading branch information
dmytrorykun committed May 31, 2024
1 parent 4a5b4e2 commit aa86496
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ describe('ReactNativeAttributePayload.diff', () => {
expect(diffB).toBeCalledWith([3], [4]);
});

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

// @gate !enableShallowPropDiffing
it('should do deep diffs of Objects by default', () => {
expect(
diff(
Expand Down Expand Up @@ -422,6 +424,7 @@ describe('ReactNativeAttributePayload.diff', () => {
).toEqual(null);
});

// @gate !enableShallowPropDiffing
it('should skip deeply-nested changed functions', () => {
expect(
diff(
Expand Down

0 comments on commit aa86496

Please sign in to comment.