File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/LiveComponent/assets/test Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ let activeTests: FunctionalTest[] = [];
13
13
let application : Application ;
14
14
15
15
export function shutdownTests ( ) {
16
+ if ( application ) {
17
+ application . stop ( ) ;
18
+ }
19
+
16
20
if ( activeTests . length === 0 ) {
17
21
// no test was run, apparently
18
22
return ;
@@ -366,7 +370,9 @@ export function createTestForExistingComponent(component: Component): Functional
366
370
367
371
export async function startStimulus ( element : string | HTMLElement ) {
368
372
// start the Stimulus app just once per test suite
369
- if ( ! application ) {
373
+ if ( application ) {
374
+ await application . start ( ) ;
375
+ } else {
370
376
application = Application . start ( ) ;
371
377
application . register ( 'live' , LiveController ) ;
372
378
}
You can’t perform that action at this time.
0 commit comments