vitest.config.ts 552 B

123456789101112131415161718192021
  1. /* eslint-disable @typescript-eslint/naming-convention */
  2. /* eslint-disable import/no-extraneous-dependencies */
  3. import path from 'path';
  4. import react from '@vitejs/plugin-react';
  5. import { defineConfig } from 'vitest/config';
  6. // https://vitejs.dev/config/
  7. export default defineConfig({
  8. plugins: [react()],
  9. test: {
  10. environment: 'jsdom',
  11. include: ['**/src/**/*.test.{js,ts,jsx,tsx}'],
  12. },
  13. resolve: {
  14. alias: {
  15. '@/data': path.resolve(__dirname, './data'),
  16. '@/utils': path.resolve(__dirname, './src/utils'),
  17. },
  18. },
  19. });