vite.config.mts 622 B

12345678910111213141516171819
  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. gqlTadaOutputPath: path.resolve(__dirname, './graphql/'),
  16. }) as any,
  17. ],
  18. });