mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
Co-authored-by: Pduhard <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>
21 lines
536 B
TypeScript
21 lines
536 B
TypeScript
import { expect, test } from 'vitest'
|
|
import { instances, provider, runBrowserTests } from './utils'
|
|
|
|
test('runs tests from files whose path contains a plus sign', async () => {
|
|
const { stderr, stdout, exitCode } = await runBrowserTests({
|
|
root: './fixtures/file-path-encoding',
|
|
reporters: ['verbose'],
|
|
browser: {
|
|
provider,
|
|
instances,
|
|
},
|
|
})
|
|
|
|
expect(stderr).toBe('')
|
|
expect(exitCode).toBe(0)
|
|
|
|
instances.forEach(({ browser }) => {
|
|
expect(stdout).toReportPassedTest('a+b.test.ts', browser)
|
|
})
|
|
})
|