## Description <!-- Please insert your description here and especially provide info about the "what" this PR is solving --> ## Linked Issues <!-- Optional, if you have any --> ## Additional Context <!-- e.g. is there anything you'd like reviewers to focus on? -->
34 lines
746 B
TypeScript
34 lines
746 B
TypeScript
import type { TestProjectInlineConfiguration } from 'vitest/config'
|
|
|
|
import { playwright } from '@vitest/browser-playwright'
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
export const providerInferenceProjects: TestProjectInlineConfiguration[] = [
|
|
{
|
|
test: {
|
|
name: 'node',
|
|
include: ['src/**/*.test.ts'],
|
|
exclude: ['src/**/*.browser.test.ts'],
|
|
},
|
|
},
|
|
{
|
|
test: {
|
|
name: 'browser',
|
|
include: ['src/**/*.browser.test.ts'],
|
|
browser: {
|
|
enabled: true,
|
|
headless: true,
|
|
provider: playwright(),
|
|
instances: [{ browser: 'chromium' }],
|
|
},
|
|
},
|
|
},
|
|
]
|
|
|
|
export default defineConfig({
|
|
root: import.meta.dirname,
|
|
test: {
|
|
projects: providerInferenceProjects,
|
|
},
|
|
})
|