| 12345678910111213141516171819 |
- import { vendureDashboardPlugin } from '@vendure/dashboard/plugin';
- import path from 'path';
- import { pathToFileURL } from 'url';
- import { defineConfig } from 'vitest/config';
- export default defineConfig({
- test: {
- globals: true,
- environment: 'jsdom',
- root: path.resolve(__dirname, '../dashboard'),
- },
- plugins: [
- vendureDashboardPlugin({
- vendureConfigPath: pathToFileURL('./dev-config.ts'),
- adminUiConfig: { apiHost: 'http://localhost', apiPort: 3000 },
- gqlTadaOutputPath: path.resolve(__dirname, './graphql/'),
- }) as any,
- ],
- });
|