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.
1234567891011121314151617181920212223242526272829import { startVitest } from 'vitest/node'
const configs = [ ['test/default-css', {}], ['test/process-css', { include: [/App\.css/] }], [['test/process-module', 'test/process-inline'], { include: [/App\.module\.css/] }], ['test/scope-module', { include: [/App\.module\.css/], modules: { classNameStrategy: 'scoped' } }], ['test/non-scope-module', { include: [/App\.module\.css/], modules: { classNameStrategy: 'non-scoped' } }],]
async function runTests() { for (const [name, config] of configs) { const names = Array.isArray(name) ? name : [name]; await startVitest('test', names, { run: true, css: config, update: false, teardownTimeout: 1000_000_000, })
if (process.exitCode) process.exit() }
process.exit(0)}
runTests()