File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
apps/client-e2e/src/tests Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,9 @@ export class Runner {
110
110
111
111
// run all of our tests
112
112
for ( let i = 0 ; i < this . tests . length ; i ++ ) {
113
+ // reset log error tracking information
114
+ ACTIVATION_RESULT . client . logger . resetTracker ( ) ;
115
+
113
116
try {
114
117
// check if we should skip running the test
115
118
if ( ! this . canRunTest ( this . tests [ i ] ) ) {
@@ -125,6 +128,13 @@ export class Runner {
125
128
// attempt to run test
126
129
await this . tests [ i ] . fn ( ACTIVATION_RESULT ) ;
127
130
131
+ // check for unhandled errors
132
+ if ( ACTIVATION_RESULT . client . logger . tracker . errors > 0 ) {
133
+ throw new Error (
134
+ 'Unhandled error detected on the language server during test'
135
+ ) ;
136
+ }
137
+
128
138
// reset config
129
139
await ResetSettingsForTests ( config ) ;
130
140
You can’t perform that action at this time.
0 commit comments