File tree Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -602,6 +602,14 @@ exports[`loader should work with multiple "@import" at-rules (node-sass) (scss):
602602
603603exports[` loader should work with multiple " @import" at - rules (node - sass ) (scss ): warnings 1 ` ] = ` Array []` ;
604604
605+ exports[` loader should work with multiple " @import" at - rules without quotes (dart - sass ) (sass ): errors 1 ` ] = ` Array []` ;
606+
607+ exports[` loader should work with multiple " @import" at - rules without quotes (dart - sass ) (sass ): warnings 1 ` ] = ` Array []` ;
608+
609+ exports[` loader should work with multiple " @import" at - rules without quotes (node - sass ) (sass ): errors 1 ` ] = ` Array []` ;
610+
611+ exports[` loader should work with multiple " @import" at - rules without quotes (node - sass ) (sass ): warnings 1 ` ] = ` Array []` ;
612+
605613exports[` loader should work with the " bootstrap" package , import as a package (dart -sass ) (sass ): errors 1 ` ] = ` Array []` ;
606614
607615exports[` loader should work with the " bootstrap" package , import as a package (dart -sass ) (sass ): warnings 1 ` ] = ` Array []` ;
Original file line number Diff line number Diff line change @@ -339,6 +339,25 @@ describe('loader', () => {
339339 expect ( stats . compilation . errors ) . toMatchSnapshot ( 'errors' ) ;
340340 } ) ;
341341
342+ it ( `should work with multiple "@import" at-rules without quotes (${ implementationName } ) (${ syntax } )` , async ( ) => {
343+ if ( syntax === 'scss' ) {
344+ return ;
345+ }
346+
347+ const testId = getTestId ( 'import-without-quotes' , syntax ) ;
348+ const options = {
349+ implementation : getImplementationByName ( implementationName ) ,
350+ } ;
351+ const stats = await compile ( testId , { loader : { options } } ) ;
352+
353+ expect ( getCodeFromBundle ( stats ) . css ) . toBe (
354+ getCodeFromSass ( testId , options ) . css
355+ ) ;
356+
357+ expect ( stats . compilation . warnings ) . toMatchSnapshot ( 'warnings' ) ;
358+ expect ( stats . compilation . errors ) . toMatchSnapshot ( 'errors' ) ;
359+ } ) ;
360+
342361 it ( `should work and use the "sass" field (${ implementationName } ) (${ syntax } )` , async ( ) => {
343362 const testId = getTestId ( 'import-sass-field' , syntax ) ;
344363 const options = {
Original file line number Diff line number Diff line change 1+ @import example
2+ @import ./example
3+ @import example.sass
4+ @import ./example.sass
5+ @import example-2
6+ @import ./example-2
7+ @import _example-2
8+ @import ./_example-2
9+ @import directory/file
10+ @import ./directory/file
11+ @import directory/_file
12+ @import ./directory/_file
13+ @import directory-6/file
14+ @import ./directory-6/file
15+ @import directory-6/file/index
16+ @import ./directory-6/file/index
17+ @import directory-6/file/index.sass
18+ @import ./directory-6/file/index.sass
19+ @import directory-6/file/_index.sass
20+ @import ./directory-6/file/_index.sass
21+ @import ~sass/underscore
You can’t perform that action at this time.
0 commit comments