vitest.config.ts 304 B

1234567891011121314
  1. import { fileURLToPath, URL } from 'node:url';
  2. import { defineConfig } from 'vitest/config';
  3. export default defineConfig({
  4. resolve: {
  5. alias: {
  6. '@': fileURLToPath(new URL('./src', import.meta.url)),
  7. },
  8. },
  9. test: {
  10. environment: 'node',
  11. include: ['tests/**/*.spec.ts'],
  12. },
  13. });