@@ -72,6 +72,27 @@ export const __cssModule: true;
72
72
export type AllClassNames = '';"
73
73
` ;
74
74
75
+ exports [` utils / cssSnapshots with file 'empty.module.styl' createExports should create an exports file 1` ] = `
76
+ "declare const classes: {
77
+
78
+ } ;
79
+ export default classes;
80
+ "
81
+ ` ;
82
+
83
+ exports [` utils / cssSnapshots with file 'empty.module.styl' getClasses should return an object matching expected CSS 1` ] = ` Object { } ` ;
84
+
85
+ exports [` utils / cssSnapshots with file 'empty.module.styl' with a custom template should transform the generated dts 1` ] = `
86
+ "/* eslint-disable */
87
+ declare const classes: {
88
+
89
+ } ;
90
+ export default classes;
91
+
92
+ export const __cssModule: true;
93
+ export type AllClassNames = '';"
94
+ ` ;
95
+
75
96
exports [` utils / cssSnapshots with file 'import.module.css' createExports should create an exports file 1` ] = `
76
97
"declare const classes: {
77
98
' classA' : string ;
@@ -182,6 +203,64 @@ export const __cssModule: true;
182
203
export type AllClassNames = 'nested-class-parent' | 'child-class' | 'selector-blue' | 'selector-green' | 'selector-red' | 'column-1' | 'column-2' | 'column-3' | 'column-4' | 'color-set';"
183
204
` ;
184
205
206
+ exports [` utils / cssSnapshots with file 'import.module.styl' createExports should create an exports file 1` ] = `
207
+ "declare const classes: {
208
+ ' foo' : string ;
209
+ ' bar' : string ;
210
+ ' baz' : string ;
211
+ ' col-1' : string ;
212
+ ' col-2' : string ;
213
+ ' col-3' : string ;
214
+ ' local-class-1' : string ;
215
+ ' inside-local' : string ;
216
+ ' inside-1-name-2' : string ;
217
+ ' inside-2-name-1' : string ;
218
+ } ;
219
+ export default classes;
220
+ export const foo: string;
221
+ export const bar: string;
222
+ export const baz: string;
223
+ "
224
+ ` ;
225
+
226
+ exports [` utils / cssSnapshots with file 'import.module.styl' getClasses should return an object matching expected CSS 1` ] = `
227
+ Object {
228
+ " bar" : " import-module__bar---2N4cR" ,
229
+ " baz" : " import-module__baz---6mQbB" ,
230
+ " col-1" : " import-module__col-1---2QW7j" ,
231
+ " col-2" : " import-module__col-2---2CRRS" ,
232
+ " col-3" : " import-module__col-3---17Luq" ,
233
+ " foo" : " import-module__foo---FJflO" ,
234
+ " inside-1-name-2" : " import-module__inside-1-name-2---wLnoq" ,
235
+ " inside-2-name-1" : " import-module__inside-2-name-1---1GRhn" ,
236
+ " inside-local" : " import-module__inside-local---1JuOc" ,
237
+ " local-class-1" : " import-module__local-class-1---3QupT" ,
238
+ }
239
+ ` ;
240
+
241
+ exports [` utils / cssSnapshots with file 'import.module.styl' with a custom template should transform the generated dts 1` ] = `
242
+ "/* eslint-disable */
243
+ declare const classes: {
244
+ ' foo' : string ;
245
+ ' bar' : string ;
246
+ ' baz' : string ;
247
+ ' col-1' : string ;
248
+ ' col-2' : string ;
249
+ ' col-3' : string ;
250
+ ' local-class-1' : string ;
251
+ ' inside-local' : string ;
252
+ ' inside-1-name-2' : string ;
253
+ ' inside-2-name-1' : string ;
254
+ } ;
255
+ export default classes;
256
+ export const foo: string;
257
+ export const bar: string;
258
+ export const baz: string;
259
+
260
+ export const __cssModule: true;
261
+ export type AllClassNames = 'foo' | 'bar' | 'baz' | 'col-1' | 'col-2' | 'col-3' | 'local-class-1' | 'inside-local' | 'inside-1-name-2' | 'inside-2-name-1';"
262
+ ` ;
263
+
185
264
exports [` utils / cssSnapshots with file 'test.module.css' createExports should create an exports file 1` ] = `
186
265
"declare const classes: {
187
266
' classA' : string ;
@@ -456,9 +535,74 @@ export const __cssModule: true;
456
535
export type AllClassNames = 'local-class-inside-global' | 'local-class' | 'local-class-2' | 'local-class-inside-local' | 'reserved-words' | 'default' | 'const' | 'nested-class-parent' | 'child-class' | 'nested-class-parent--extended' | 'section-1' | 'section-2' | 'section-3' | 'section-4' | 'section-5' | 'section-6' | 'section-7' | 'section-8' | 'section-9' | 'class-with-mixin';"
457
536
` ;
458
537
538
+ exports [` utils / cssSnapshots with file 'test.module.styl' createExports should create an exports file 1` ] = `
539
+ "declare const classes: {
540
+ ' foo' : string ;
541
+ ' bar' : string ;
542
+ ' baz' : string ;
543
+ ' col-1' : string ;
544
+ ' col-2' : string ;
545
+ ' col-3' : string ;
546
+ ' local-class-1' : string ;
547
+ ' inside-local' : string ;
548
+ ' inside-1-name-2' : string ;
549
+ ' inside-2-name-1' : string ;
550
+ } ;
551
+ export default classes;
552
+ export const foo: string;
553
+ export const bar: string;
554
+ export const baz: string;
555
+ "
556
+ ` ;
557
+
558
+ exports [` utils / cssSnapshots with file 'test.module.styl' getClasses should return an object matching expected CSS 1` ] = `
559
+ Object {
560
+ " bar" : " test-module__bar---2WWom" ,
561
+ " baz" : " test-module__baz---1Rs9U" ,
562
+ " col-1" : " test-module__col-1---1XP3K" ,
563
+ " col-2" : " test-module__col-2---2nPwS" ,
564
+ " col-3" : " test-module__col-3---3CSSb" ,
565
+ " foo" : " test-module__foo---2pGaO" ,
566
+ " inside-1-name-2" : " test-module__inside-1-name-2---3Zdgw" ,
567
+ " inside-2-name-1" : " test-module__inside-2-name-1---3PYHl" ,
568
+ " inside-local" : " test-module__inside-local---2KzUE" ,
569
+ " local-class-1" : " test-module__local-class-1---3piX9" ,
570
+ }
571
+ ` ;
572
+
573
+ exports [` utils / cssSnapshots with file 'test.module.styl' with a custom template should transform the generated dts 1` ] = `
574
+ "/* eslint-disable */
575
+ declare const classes: {
576
+ ' foo' : string ;
577
+ ' bar' : string ;
578
+ ' baz' : string ;
579
+ ' col-1' : string ;
580
+ ' col-2' : string ;
581
+ ' col-3' : string ;
582
+ ' local-class-1' : string ;
583
+ ' inside-local' : string ;
584
+ ' inside-1-name-2' : string ;
585
+ ' inside-2-name-1' : string ;
586
+ } ;
587
+ export default classes;
588
+ export const foo: string;
589
+ export const bar: string;
590
+ export const baz: string;
591
+
592
+ export const __cssModule: true;
593
+ export type AllClassNames = 'foo' | 'bar' | 'baz' | 'col-1' | 'col-2' | 'col-3' | 'local-class-1' | 'inside-local' | 'inside-1-name-2' | 'inside-2-name-1';"
594
+ ` ;
595
+
459
596
exports [` utils / cssSnapshots with includePaths in sass options should find external file from includePaths 1` ] = `
460
597
Object {
461
598
" big-font" : " include-path-module__big-font---Td7hY" ,
462
599
" class-with-mixin" : " include-path-module__class-with-mixin---1u87_" ,
463
600
}
464
601
` ;
602
+
603
+ exports [` utils / cssSnapshots with includePaths in stylus options should find external file from includePaths 1` ] = `
604
+ Object {
605
+ " external-class" : " include-path-module__external-class---ecH0A" ,
606
+ " include-path" : " include-path-module__include-path---2f2uR" ,
607
+ }
608
+ ` ;
0 commit comments