File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
packages/browser/src/client Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -96,12 +96,6 @@ client.ws.addEventListener('open', async () => {
9696
9797 debug ( 'test files' , testFiles . join ( ', ' ) )
9898
99- // TODO: fail tests suite because no tests found?
100- if ( ! testFiles . length ) {
101- await done ( )
102- return
103- }
104-
10599 const runningFiles = new Set < string > ( testFiles )
106100
107101 channel . addEventListener ( 'message' , async ( e : MessageEvent < IframeChannelEvent > ) : Promise < void > => {
@@ -168,7 +162,10 @@ client.ws.addEventListener('open', async () => {
168162 }
169163 } )
170164
171- await createTesters ( testFiles )
165+ // if page was refreshed, there will be no test files
166+ // createTesters will be called again when tests are running in the UI
167+ if ( testFiles . length )
168+ await createTesters ( testFiles )
172169} )
173170
174171async function createTesters ( testFiles : string [ ] ) {
You can’t perform that action at this time.
0 commit comments