vite.config.mts 552 B

123456789101112131415161718
  1. import { vendureDashboardPlugin } from '@vendure/dashboard/plugin';
  2. import path from 'path';
  3. import { pathToFileURL } from 'url';
  4. import { defineConfig } from 'vitest/config';
  5. export default defineConfig({
  6. test: {
  7. globals: true,
  8. environment: 'jsdom',
  9. root: path.resolve(__dirname, '../dashboard'),
  10. },
  11. plugins: [
  12. vendureDashboardPlugin({
  13. vendureConfigPath: pathToFileURL('./dev-config.ts'),
  14. adminUiConfig: { apiHost: 'http://localhost', apiPort: 3000 },
  15. }) as any,
  16. ],
  17. });