@@ -52,13 +52,14 @@ public function testFullApplicationLoad()
52
52
$ this ->assertSame ([
53
53
// 1x import from loader.js (which is aliased to @symfony/stimulus-bundle via importmap)
54
54
'/assets/@symfony/stimulus-bundle/controllers.js ' ,
55
- // 6x from "controllers" (hello is overridden)
55
+ // 7x from "controllers" (hello is overridden)
56
56
'/assets/controllers/bye_controller.js ' ,
57
57
'/assets/controllers/hello-with-dashes-controller.js ' ,
58
58
'/assets/controllers/hello_with_underscores-controller.js ' ,
59
59
'/assets/controllers/subdir/deeper-controller.js ' ,
60
60
'/assets/controllers/subdir/deeper-with-dashes-controller.js ' ,
61
61
'/assets/controllers/subdir/deeper_with_underscores-controller.js ' ,
62
+ '/assets/controllers/typescript-controller.ts ' ,
62
63
// 2x from UX packages, which are enabled in controllers.json
63
64
'/assets/fake-vendor/ux-package1/package-controller-second.js ' ,
64
65
'/assets/fake-vendor/ux-package2/package-hello-controller.js ' ,
@@ -92,7 +93,7 @@ public function testFullApplicationLoad()
92
93
$ preLoadHrefs = $ crawler ->filter ('link[rel="modulepreload"] ' )->each (function ($ link ) {
93
94
return $ link ->attr ('href ' );
94
95
});
95
- $ this ->assertCount (11 , $ preLoadHrefs );
96
+ $ this ->assertCount (12 , $ preLoadHrefs );
96
97
sort ($ preLoadHrefs );
97
98
$ this ->assertStringStartsWith ('/assets/@symfony/stimulus-bundle/controllers- ' , $ preLoadHrefs [0 ]);
98
99
$ this ->assertStringStartsWith ('/assets/@symfony/stimulus-bundle/loader- ' , $ preLoadHrefs [1 ]);
@@ -101,9 +102,10 @@ public function testFullApplicationLoad()
101
102
$ this ->assertStringStartsWith ('/assets/controllers/subdir/deeper-controller- ' , $ preLoadHrefs [5 ]);
102
103
$ this ->assertStringStartsWith ('/assets/controllers/subdir/deeper-with-dashes-controller- ' , $ preLoadHrefs [6 ]);
103
104
$ 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 ]);
107
109
} else {
108
110
// legacy
109
111
$ this ->assertSame ([
0 commit comments