Skip to content

Commit ceca2a6

Browse files
antonisclaude
andcommitted
test(core): Add backward compatibility tests for deprecated FeedbackWidget API
Verify that the deprecated FeedbackWidget and showFeedbackWidget exports are identical to their FeedbackForm replacements. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 00e33fc commit ceca2a6

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

packages/core/test/feedback/FeedbackForm.test.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,4 +533,17 @@ describe('FeedbackForm', () => {
533533

534534
expect(getClient().getIntegrationByName(MOBILE_FEEDBACK_INTEGRATION_NAME)).toBeDefined();
535535
});
536+
537+
describe('deprecated API backward compatibility', () => {
538+
// eslint-disable-next-line @typescript-eslint/no-var-requires
539+
const index = require('../../src/js/index');
540+
541+
it('FeedbackWidget is the same as FeedbackForm', () => {
542+
expect(index.FeedbackWidget).toBe(index.FeedbackForm);
543+
});
544+
545+
it('showFeedbackWidget is the same as showFeedbackForm', () => {
546+
expect(index.showFeedbackWidget).toBe(index.showFeedbackForm);
547+
});
548+
});
536549
});

0 commit comments

Comments
 (0)