Skip to content

Commit 3b49571

Browse files
committed
Move clear error to less spammy place
1 parent b940ab8 commit 3b49571

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/app/src/sandbox/eval/tests/jest-lite.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ export default class TestRunner {
255255

256256
await Promise.all(
257257
tests.map(async t => {
258+
dispatch(actions.error.clear(t.path, 'jest'));
259+
258260
try {
259261
this.manager.evaluateModule(t, {
260262
force: true,
@@ -329,7 +331,6 @@ export default class TestRunner {
329331
case 'test_start': {
330332
const test = await this.testToCodeSandbox(message.test);
331333

332-
dispatch(actions.error.clear(test.path, 'jest'));
333334
return this.sendMessage('test_start', {
334335
test,
335336
});

0 commit comments

Comments
 (0)