Skip to content

Commit c80dcc6

Browse files
committed
refactor: clear screen before running the tests
1 parent 63a1a52 commit c80dcc6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Test/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ export class TestsServer {
9191
private logger: typeof uiLogger = uiLogger
9292
) {}
9393

94+
/**
95+
* Clear terminal screen
96+
*/
97+
private clearScreen() {
98+
process.stdout.write('\u001Bc')
99+
}
100+
94101
/**
95102
* Returns the glob paths for test suites. Returns all if no
96103
* filter is applied. Otherwise only the filtered suites
@@ -150,6 +157,7 @@ export class TestsServer {
150157
return
151158
}
152159

160+
this.clearScreen()
153161
const filters = { ...this.filters }
154162

155163
/**

0 commit comments

Comments
 (0)