vite.config.mts 663 B

12345678910111213141516171819
  1. import { vendureDashboardPlugin } from './vite/vite-plugin-vendure-dashboard.js';
  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. },
  10. plugins: [
  11. vendureDashboardPlugin({
  12. vendureConfigPath: pathToFileURL('./sample-vendure-config.ts'),
  13. adminUiConfig: { apiHost: 'http://localhost', apiPort: 3000 },
  14. // gqlTadaOutputPath: path.resolve(__dirname, './graphql/'),
  15. tempCompilationDir: path.resolve(__dirname, './.temp'),
  16. }) as any,
  17. ],
  18. });