import { defineConfig, mergeConfig } from 'vite';
import { createVitestConfig } from '@n8n/vitest-config/frontend';

export default mergeConfig(
	defineConfig({}),
	createVitestConfig({
		setupFiles: [],
		// This package has very few test files. CI passes --shard=1/2 and --shard=2/2
		// to all frontend packages via turbo. Without this flag, vitest errors when
		// the shard count exceeds the number of test files.
		passWithNoTests: true,
	}),
);
