File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ const CONFIG_TEMPLATES: Template[] = [
345
345
name : 'config-stylelint' ,
346
346
uiContext : [ 'newTab' ] ,
347
347
uiFramework : undefined ,
348
- css : 'css ' ,
348
+ css : 'sass ' ,
349
349
hasBackground : false ,
350
350
hasEnv : false ,
351
351
configFiles : [ '.stylelintrc.json' ]
Original file line number Diff line number Diff line change @@ -95,10 +95,17 @@ describe('extension create', () => {
95
95
) . toBeTruthy ( )
96
96
}
97
97
98
+ if ( template . name . includes ( 'esm' ) ) {
99
+ expect (
100
+ fileExists ( template . name , `${ context . toLowerCase ( ) } /scripts.mjs` )
101
+ ) . toBeTruthy ( )
98
102
// Expect [uiContext]/[uiContext].[ext] for scripts
99
- expect (
100
- fileExists ( template . name , `${ context . toLowerCase ( ) } /scripts.${ ext } ` )
101
- ) . toBeTruthy ( )
103
+ } else {
104
+ expect (
105
+ fileExists ( template . name , `${ context . toLowerCase ( ) } /scripts.${ ext } ` )
106
+ ) . toBeTruthy ( )
107
+ }
108
+
102
109
103
110
// Expect [uiContext]/styles.sass|less|css for styles
104
111
if ( template . css === 'sass' ) {
You can’t perform that action at this time.
0 commit comments