@@ -52,13 +52,14 @@ public function testFullApplicationLoad()
5252 $ this ->assertSame ([
5353 // 1x import from loader.js (which is aliased to @symfony/stimulus-bundle via importmap)
5454 '/assets/@symfony/stimulus-bundle/controllers.js ' ,
55- // 6x from "controllers" (hello is overridden)
55+ // 7x from "controllers" (hello is overridden)
5656 '/assets/controllers/bye_controller.js ' ,
5757 '/assets/controllers/hello-with-dashes-controller.js ' ,
5858 '/assets/controllers/hello_with_underscores-controller.js ' ,
5959 '/assets/controllers/subdir/deeper-controller.js ' ,
6060 '/assets/controllers/subdir/deeper-with-dashes-controller.js ' ,
6161 '/assets/controllers/subdir/deeper_with_underscores-controller.js ' ,
62+ '/assets/controllers/typescript-controller.ts ' ,
6263 // 2x from UX packages, which are enabled in controllers.json
6364 '/assets/fake-vendor/ux-package1/package-controller-second.js ' ,
6465 '/assets/fake-vendor/ux-package2/package-hello-controller.js ' ,
@@ -92,7 +93,7 @@ public function testFullApplicationLoad()
9293 $ preLoadHrefs = $ crawler ->filter ('link[rel="modulepreload"] ' )->each (function ($ link ) {
9394 return $ link ->attr ('href ' );
9495 });
95- $ this ->assertCount (11 , $ preLoadHrefs );
96+ $ this ->assertCount (12 , $ preLoadHrefs );
9697 sort ($ preLoadHrefs );
9798 $ this ->assertStringStartsWith ('/assets/@symfony/stimulus-bundle/controllers- ' , $ preLoadHrefs [0 ]);
9899 $ this ->assertStringStartsWith ('/assets/@symfony/stimulus-bundle/loader- ' , $ preLoadHrefs [1 ]);
@@ -101,9 +102,10 @@ public function testFullApplicationLoad()
101102 $ this ->assertStringStartsWith ('/assets/controllers/subdir/deeper-controller- ' , $ preLoadHrefs [5 ]);
102103 $ this ->assertStringStartsWith ('/assets/controllers/subdir/deeper-with-dashes-controller- ' , $ preLoadHrefs [6 ]);
103104 $ this ->assertStringStartsWith ('/assets/controllers/subdir/deeper_with_underscores-controller- ' , $ preLoadHrefs [7 ]);
104- $ this ->assertStringStartsWith ('/assets/fake-vendor/ux-package2/package-hello-controller- ' , $ preLoadHrefs [8 ]);
105- $ this ->assertStringStartsWith ('/assets/more-controllers/hello-controller- ' , $ preLoadHrefs [9 ]);
106- $ this ->assertStringStartsWith ('/assets/vendor/@hotwired/stimulus/stimulus.index ' , $ preLoadHrefs [10 ]);
105+ $ this ->assertStringStartsWith ('/assets/controllers/typescript-controller- ' , $ preLoadHrefs [8 ]);
106+ $ this ->assertStringStartsWith ('/assets/fake-vendor/ux-package2/package-hello-controller- ' , $ preLoadHrefs [9 ]);
107+ $ this ->assertStringStartsWith ('/assets/more-controllers/hello-controller- ' , $ preLoadHrefs [10 ]);
108+ $ this ->assertStringStartsWith ('/assets/vendor/@hotwired/stimulus/stimulus.index ' , $ preLoadHrefs [11 ]);
107109 } else {
108110 // legacy
109111 $ this ->assertSame ([
0 commit comments