mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
23 lines
533 B
TypeScript
23 lines
533 B
TypeScript
import { playwright } from '@vitest/browser-playwright';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
{
|
|
name: 'test:html',
|
|
transformIndexHtml() {
|
|
throw new Error('expected error in transformIndexHtml')
|
|
},
|
|
},
|
|
],
|
|
test: {
|
|
include: ['./browser-basic.test.ts'],
|
|
browser: {
|
|
instances: [{ browser: 'chromium' }],
|
|
enabled: true,
|
|
headless: true,
|
|
provider: playwright(),
|
|
testerHtmlPath: './custom-html.html'
|
|
},
|
|
},
|
|
}) |