run-tests.ts•536 B
import execa from 'execa'
// We pass the --passWithNoTests flag to jest and vitest for them not to fail
// when the filter provided via CLI only matches tests in one of the two suites.
export function main() {
execa.sync('jest', ['--silent', '--passWithNoTests', ...process.argv.slice(2)], {
preferLocal: true,
stdio: 'inherit',
env: process.env,
})
execa.sync('vitest', ['run', '--passWithNoTests', ...process.argv.slice(2)], {
preferLocal: true,
stdio: 'inherit',
env: process.env,
})
}
void main()