Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
Something went wrong. Try again.
1.3 kB · 46 lines
TypeScript
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647import { playwright } from '@vitest/browser-playwright'import { defineConfig } from 'vitest/config'
if (process.env.TEST_WATCH) { // Patch stdin on the process so that we can fake it to seem like a real interactive terminal and pass the TTY checks process.stdin.isTTY = true process.stdin.setRawMode = () => process.stdin}
export default defineConfig({ test: { reporters: ['default', 'json'], outputFile: './results.json', globalSetup: './globalTest.ts', projects: [ './space_*/*.config.ts', { cacheDir: '.cache/inline', test: { name: 'space_browser_inline', root: './space_browser_inline', browser: { enabled: true, instances: [{ browser: (process.env.BROWSER as 'chromium') || 'chromium' }], headless: true, provider: playwright(), }, alias: { 'test-alias-from-vitest': new URL( './space_browser_inline/test-alias-to.ts', import.meta.url, ).pathname, }, }, resolve: { alias: { 'test-alias-from-vite': new URL( './space_browser_inline/test-alias-to.ts', import.meta.url, ).pathname, }, }, }, ], },})