We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd598ed commit bb5d041Copy full SHA for bb5d041
1 file changed
apps/client-e2e/src/tests/runner.class.ts
@@ -110,6 +110,9 @@ export class Runner {
110
111
// run all of our tests
112
for (let i = 0; i < this.tests.length; i++) {
113
+ // reset log error tracking information
114
+ ACTIVATION_RESULT.client.logger.resetTracker();
115
+
116
try {
117
// check if we should skip running the test
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
138
// reset config
139
await ResetSettingsForTests(config);
140
0 commit comments