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[] = [];
1313let application : Application ;
1414
1515export function shutdownTests ( ) {
16+ if ( application ) {
17+ application . stop ( ) ;
18+ }
19+
1620 if ( activeTests . length === 0 ) {
1721 // no test was run, apparently
1822 return ;
@@ -366,7 +370,9 @@ export function createTestForExistingComponent(component: Component): Functional
366370
367371export async function startStimulus ( element : string | HTMLElement ) {
368372 // start the Stimulus app just once per test suite
369- if ( ! application ) {
373+ if ( application ) {
374+ await application . start ( ) ;
375+ } else {
370376 application = Application . start ( ) ;
371377 application . register ( 'live' , LiveController ) ;
372378 }
You can’t perform that action at this time.
0 commit comments