Skip to content

Commit 2b97121

Browse files
committed
add test coverage for exception for SecondaryIconButtonProps
Signed-off-by: Winner95 <Winner95@users.noreply.github.com>
1 parent 7ae9cc6 commit 2b97121

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

__tests__/handler.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ describe('typescript-react-function-component-props-handler', () => {
100100
expect(doc.props).toBeUndefined();
101101
});
102102

103+
// @TODO add definition to scan props for that case
104+
test('handles NoInfer components with type props definition', () => {
105+
const doc = parseFixture('PrimaryButtonPropsFromPackage.tsx');
106+
107+
expect(doc.props).toBeUndefined();
108+
});
109+
103110
// Line 31 in index.js without type - can't be tested directly because of early return
104111
test('handles components without type', () => {
105112
const doc = parseFixture('ComponentWithoutType.tsx');

0 commit comments

Comments
 (0)