import { defineConfig, mergeConfig } from 'vitest/config';

import baseConfig from './vitest.config';

/**
 * This file exists to define our aspirational thresholds for the purpose of
 * CI displaying coverage good/bad status in pull requests.
 *
 * Someday when we have better test coverage, this file will go away and we can
 * be stricter about our coverage thresholds.
 */
export default mergeConfig(
  baseConfig,
  defineConfig({
    test: {
      coverage: {
        thresholds: {
          lines: 25,
          statements: 25,
          functions: 25,
          branches: 50,
        },
      },
    },
  })
);
