mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
20 lines
639 B
TypeScript
20 lines
639 B
TypeScript
import { expect, test } from 'vitest'
|
|
import { instances, runBrowserTests } from './utils'
|
|
|
|
test('locators work correctly', async () => {
|
|
const { stderr, stdout } = await runBrowserTests({
|
|
root: './fixtures/locators',
|
|
reporters: [['verbose', { isTTY: false }]],
|
|
})
|
|
|
|
expect(stderr).toReportNoErrors()
|
|
|
|
instances.forEach(({ browser }) => {
|
|
expect(stdout).toReportPassedTest('blog.test.tsx', browser)
|
|
expect(stdout).toReportPassedTest('query.test.ts', browser)
|
|
})
|
|
|
|
expect(stdout).toReportSummaryTestFiles({ passed: instances.length * 2 })
|
|
expect(stdout).toReportSummaryTests({ passed: instances.length * 3 })
|
|
})
|