move to vitest (#18)

* feat: move to vitest

* fix: lock file

* fix: tests running sequentially on same port

* fix lock file

---------

Co-authored-by: Paul Carleton <paulcarletonjr@gmail.com>
This commit is contained in:
Matt 2025-11-13 13:32:07 +00:00 • committed by GitHub
commit aeceefa9cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

15
vitest.config.ts Normal file
View file

@ -0,0 +1,15 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['**/*.test.ts'],
exclude: ['node_modules', 'dist'],
// Run test files sequentially to avoid port conflicts
fileParallelism: false,
// Increase timeout for server tests in CI
testTimeout: 15000,
hookTimeout: 30000
}
});