File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,32 @@ if (import.meta.vitest) {
213
213
} ) ;
214
214
} ) ;
215
215
216
+ describe . concurrent ( "RecipeClassNames Type Test" , ( ) => {
217
+ function assertValidClassNames < Variants extends VariantGroups > (
218
+ classNames : RecipeClassNames < Variants >
219
+ ) {
220
+ assertType ( classNames ) ;
221
+ return classNames ;
222
+ }
223
+
224
+ it ( "Valid ClassNames Type Check" , ( ) => {
225
+ assertValidClassNames ( {
226
+ base : "base-class" ,
227
+ variants : {
228
+ color : {
229
+ brand : "color-brand-class" ,
230
+ accent : "color-accent-class"
231
+ } ,
232
+ size : {
233
+ small : "size-small-class" ,
234
+ medium : "size-medium-class" ,
235
+ large : "size-large-class"
236
+ }
237
+ }
238
+ } ) ;
239
+ } ) ;
240
+ } ) ;
241
+
216
242
describe . concurrent ( "Types related to Rules" , ( ) => {
217
243
function assertValidOptions <
218
244
Variants extends VariantGroups | undefined = undefined ,
You can’t perform that action at this time.
0 commit comments