@@ -564,11 +564,13 @@ export default testSuite(({ describe }) => {
564564 style : {
565565 plain : expect . stringMatching ( / _ p l a i n _ \w + / ) ,
566566 composed : expect . stringMatching ( / _ c o m p o s e d _ \w + _ p l a i n _ \w + / ) ,
567+ nested : expect . stringMatching ( / _ n e s t e d _ \w + _ e x t r a _ \w + _ b a s e _ \w + / ) ,
567568 } ,
568569 } ) ;
569570 const dts = await fixture . readFile ( 'style.module.css.d.ts' , 'utf8' ) ;
570571 expect ( dts ) . toMatch ( 'const plain: string;' ) ;
571572 expect ( dts ) . toMatch ( 'const composed: string;' ) ;
573+ expect ( dts ) . toMatch ( 'const nested: string;' ) ;
572574 } ) ;
573575
574576 test ( 'array' , async ( ) => {
@@ -588,11 +590,13 @@ export default testSuite(({ describe }) => {
588590 style : {
589591 plain : expect . stringMatching ( / _ p l a i n _ \w + / ) ,
590592 composed : [ expect . stringMatching ( / _ c o m p o s e d _ \w + / ) , expect . stringMatching ( / _ p l a i n _ \w + / ) ] ,
593+ nested : [ expect . stringMatching ( / _ n e s t e d _ \w + / ) , expect . stringMatching ( / _ e x t r a _ \w + / ) , expect . stringMatching ( / _ b a s e _ \w + / ) ] ,
591594 } ,
592595 } ) ;
593596 const dts = await fixture . readFile ( 'style.module.css.d.ts' , 'utf8' ) ;
594597 expect ( dts ) . toMatch ( 'const plain: string;' ) ;
595598 expect ( dts ) . toMatch ( 'const composed: string[];' ) ;
599+ expect ( dts ) . toMatch ( 'const nested: string[];' ) ;
596600 } ) ;
597601
598602 test ( 'all-array' , async ( ) => {
@@ -612,11 +616,13 @@ export default testSuite(({ describe }) => {
612616 style : {
613617 plain : [ expect . stringMatching ( / _ p l a i n _ \w + / ) ] ,
614618 composed : [ expect . stringMatching ( / _ c o m p o s e d _ \w + / ) , expect . stringMatching ( / _ p l a i n _ \w + / ) ] ,
619+ nested : [ expect . stringMatching ( / _ n e s t e d _ \w + / ) , expect . stringMatching ( / _ e x t r a _ \w + / ) , expect . stringMatching ( / _ b a s e _ \w + / ) ] ,
615620 } ,
616621 } ) ;
617622 const dts = await fixture . readFile ( 'style.module.css.d.ts' , 'utf8' ) ;
618623 expect ( dts ) . toMatch ( 'const plain: string[];' ) ;
619624 expect ( dts ) . toMatch ( 'const composed: string[];' ) ;
625+ expect ( dts ) . toMatch ( 'const nested: string[];' ) ;
620626 } ) ;
621627 } ) ;
622628
0 commit comments