@@ -10,7 +10,7 @@ const browser = false;
1010const { test, prepareServer, testCases } = setupTest (
1111 { addon } ,
1212 {
13- kinds : [ { type : 'default' , options : { addon : { who : 'you' } } } ] ,
13+ kinds : [ { type : 'default' , options : { [ addon . id ] : { who : 'you' } } } ] ,
1414 filter : ( testCase ) => testCase . variant . includes ( 'kit' ) ,
1515 browser
1616 }
@@ -21,15 +21,18 @@ test.concurrent.for(testCases)(
2121 async ( testCase , { page, ...ctx } ) => {
2222 const cwd = ctx . cwd ( testCase ) ;
2323
24- const msg =
25- "This is a text file made by the Community Addon Template demo for the add-on: '~SV-NAME-TODO~'!" ;
24+ const msg = "Community Addon Template demo for the add-on: '~SV-NAME-TODO~'!" ;
2625
2726 const contentPath = path . resolve ( cwd , `src/lib/~SV-NAME-TODO~/content.txt` ) ;
2827 const contentContent = fs . readFileSync ( contentPath , 'utf8' ) ;
29-
3028 // Check if we have the imports
3129 expect ( contentContent ) . toContain ( msg ) ;
3230
31+ const helloPath = path . resolve ( cwd , `src/lib/~SV-NAME-TODO~/HelloComponent.svelte` ) ;
32+ const helloContent = fs . readFileSync ( helloPath , 'utf8' ) ;
33+ // Check if we have the imports
34+ expect ( helloContent ) . toContain ( 'you' ) ;
35+
3336 // For browser testing
3437 if ( browser ) {
3538 const { close } = await prepareServer ( { cwd, page } ) ;
0 commit comments