mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
22 lines
592 B
TypeScript
22 lines
592 B
TypeScript
import { expect, test } from 'vitest'
|
|
import { instances, provider, runBrowserTests } from './utils'
|
|
|
|
test('runs tests correctly when project name contains special characters', async () => {
|
|
const { stderr, stdout, exitCode, ctx } = await runBrowserTests({
|
|
root: './fixtures/project-name-encoding',
|
|
browser: {
|
|
provider,
|
|
instances,
|
|
},
|
|
})
|
|
|
|
expect(stderr).toBe('')
|
|
expect(exitCode).toBe(0)
|
|
|
|
const projectName = ctx.config.name
|
|
|
|
instances.forEach(({ browser }) => {
|
|
expect(stdout).toReportPassedTest('basic.test.ts', `${projectName} (${browser})`)
|
|
})
|
|
})
|