Skip to content

Commit

Permalink
test: browser tests to include project name
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Dec 25, 2024
1 parent 9c9e69b commit 45ba01c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/browser/specs/benchmark.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { runVitest } from '../../test-utils'
test('benchmark', async () => {
const result = await runVitest({ root: 'fixtures/benchmark' }, [], 'benchmark')
expect(result.stderr).toReportNoErrors()
// TODO 2024-12-11 check |name| when it's supported
expect(result.stdout).toContain('✓ basic.bench.ts > suite-a')
expect(result.stdout).toContain('✓ |chromium| basic.bench.ts > suite-a')
expect(result.stdout).toContain('✓ |firefox| basic.bench.ts > suite-a')
expect(result.stdout).toContain('✓ |webkit| basic.bench.ts > suite-a')
expect(result.exitCode).toBe(0)
})
1 change: 1 addition & 0 deletions test/browser/vitest.config.unit.mts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
singleFork: true,
},
},
reporters: 'verbose',
setupFiles: ['./setup.unit.ts'],
// 3 is the maximum of browser instances - in a perfect world they will run in parallel
hookTimeout: process.env.CI ? 120_000 * 3 : 20_000,
Expand Down

0 comments on commit 45ba01c

Please sign in to comment.