From 0c947c8d94da1b383e675ae76abb384335ec8e0f Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Tue, 16 Dec 2025 10:04:16 -0800 Subject: [PATCH] Fix diffApiSnapshot-test (#54903) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/54903 A bit too trigger happy on D89287801(!) Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D89292895 fbshipit-source-id: 793d984253dcf24c394adc8c8646992caf17805d --- .../diff-api-snapshot/__tests__/diffApiSnapshot-test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/js-api/diff-api-snapshot/__tests__/diffApiSnapshot-test.js b/scripts/js-api/diff-api-snapshot/__tests__/diffApiSnapshot-test.js index 0216652ad40..ee02f6a7f83 100644 --- a/scripts/js-api/diff-api-snapshot/__tests__/diffApiSnapshot-test.js +++ b/scripts/js-api/diff-api-snapshot/__tests__/diffApiSnapshot-test.js @@ -49,7 +49,7 @@ describe('diffApiSnapshot', () => { expect(res.changedApis).toEqual(['DeletedExport']); }); - test('should detect breaking change when a statement is changed', () => { + test('should detect potentially breaking change when a statement is changed', () => { const prevSnapshot = ` import * as React from 'react'; export declare type AccessibilityActionEvent = NativeSyntheticEvent< @@ -78,11 +78,11 @@ describe('diffApiSnapshot', () => { `; const res = diffApiSnapshot(prevSnapshot, newSnapshot); - expect(res.result).toBe(Result.BREAKING); + expect(res.result).toBe(Result.POTENTIALLY_BREAKING); expect(res.changedApis).toEqual(['Foo']); }); - test('should detect potentially not breaking change when a statement is added', () => { + test('should detect potentially non-breaking change when a statement is added', () => { const prevSnapshot = ` import * as React from 'react'; declare type AccessibilityActionEvent = NativeSyntheticEvent< @@ -117,7 +117,7 @@ describe('diffApiSnapshot', () => { expect(res.changedApis).toEqual(['NewExport']); }); - test('should detect not breaking change when nothing is changed', () => { + test('should detect non-breaking change when nothing is changed', () => { const prevSnapshot = ` import * as React from 'react'; declare type AccessibilityActionEvent = NativeSyntheticEvent<