Skip to content

Commit f35df61

Browse files
committed
Small fixes
1 parent 8f78937 commit f35df61

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

vitest.config.browser.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ class TestLogger implements Logger {
55
private _hasWarned = false;
66
private warnedMessages = new Set<string>();
77

8-
// Required properties (not methods!)
9-
get hasWarned(): boolean {
8+
get hasWarned(): boolean {
109
return this._hasWarned;
1110
}
1211

13-
// Methods
1412
info(msg: string, options?: { timestamp?: boolean }) {
1513
const ts = options?.timestamp ? `[${new Date().toISOString()}] ` : '';
1614
console.log(`[TEST INFO] ${ts}${msg}`);
@@ -43,12 +41,10 @@ class TestLogger implements Logger {
4341
}
4442
}
4543

46-
// 2. Apply at Vite config level (not test level)
4744
export default defineConfig({
4845
customLogger: new TestLogger(),
4946
logLevel: 'info',
5047

51-
//Vitest-specific configuration
5248
test: {
5349
coverage: {
5450
provider: 'v8',

0 commit comments

Comments
 (0)