/**
 * Copyright 2015 Shuai Zhang
 * SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception
 */

import { defineConfig, type ViteUserConfigExport } from 'vitest/config';

const vitestConfig: ViteUserConfigExport = defineConfig({
  test: {
    include: ['test/**/*.test.{js,mjs,ts}'],
    environment: 'node',
    fileParallelism: false,
    coverage: {
      provider: 'v8',
      reporter: ['text', 'lcov'],
      reportsDirectory: './coverage',
    },
  },
});

export default vitestConfig;
