|
9 | 9 | requiredPropertyTypeMissing, |
10 | 10 | optionalPropWithoutDefaultValue, |
11 | 11 | missingPropsLabel, |
| 12 | + missingPropsLabelTimer, |
| 13 | + missingPropsLabelHttp, |
12 | 14 | missingPropsDescription, |
| 15 | + missingPropsDescriptionTimer, |
| 16 | + missingPropsDescriptionHttp, |
13 | 17 | badSourceName, |
14 | 18 | badSourceDescription, |
15 | 19 | tsVersion, |
@@ -87,11 +91,25 @@ const componentTestConfigs = [ |
87 | 91 | }, |
88 | 92 | { |
89 | 93 | ruleName: "props-label", |
| 94 | + validComponent: missingPropsLabelTimer, |
| 95 | + invalidComponent: missingPropsLabel, |
| 96 | + errorMessage: "Component prop test must have a label. See https://pipedream.com/docs/components/guidelines/#props", |
| 97 | + }, |
| 98 | + { |
| 99 | + ruleName: "props-label", |
| 100 | + validComponent: missingPropsLabelHttp, |
90 | 101 | invalidComponent: missingPropsLabel, |
91 | 102 | errorMessage: "Component prop test must have a label. See https://pipedream.com/docs/components/guidelines/#props", |
92 | 103 | }, |
93 | 104 | { |
94 | 105 | ruleName: "props-description", |
| 106 | + validComponent: missingPropsDescriptionTimer, |
| 107 | + invalidComponent: missingPropsDescription, |
| 108 | + errorMessage: "Component prop test must have a description. See https://pipedream.com/docs/components/guidelines/#props", |
| 109 | + }, |
| 110 | + { |
| 111 | + ruleName: "props-description", |
| 112 | + validComponent: missingPropsDescriptionHttp, |
95 | 113 | invalidComponent: missingPropsDescription, |
96 | 114 | errorMessage: "Component prop test must have a description. See https://pipedream.com/docs/components/guidelines/#props", |
97 | 115 | }, |
@@ -184,4 +202,3 @@ RuleTester.describe("On ESM export default with preceding statements", () => { |
184 | 202 | }); |
185 | 203 | }); |
186 | 204 | }); |
187 | | - |
|
0 commit comments