Skip to content

Commit 45ba01c

Browse files
committed
test: browser tests to include project name
1 parent 9c9e69b commit 45ba01c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/browser/specs/benchmark.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { runVitest } from '../../test-utils'
44
test('benchmark', async () => {
55
const result = await runVitest({ root: 'fixtures/benchmark' }, [], 'benchmark')
66
expect(result.stderr).toReportNoErrors()
7-
// TODO 2024-12-11 check |name| when it's supported
8-
expect(result.stdout).toContain('✓ basic.bench.ts > suite-a')
7+
expect(result.stdout).toContain('✓ |chromium| basic.bench.ts > suite-a')
8+
expect(result.stdout).toContain('✓ |firefox| basic.bench.ts > suite-a')
9+
expect(result.stdout).toContain('✓ |webkit| basic.bench.ts > suite-a')
910
expect(result.exitCode).toBe(0)
1011
})

test/browser/vitest.config.unit.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default defineConfig({
88
singleFork: true,
99
},
1010
},
11+
reporters: 'verbose',
1112
setupFiles: ['./setup.unit.ts'],
1213
// 3 is the maximum of browser instances - in a perfect world they will run in parallel
1314
hookTimeout: process.env.CI ? 120_000 * 3 : 20_000,

0 commit comments

Comments
 (0)