Codeminer42/cm42-central

View on GitHub
vitest.config.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { defineConfig, mergeConfig } from 'vitest/config';
import viteBaseConfig from './vite.base.config';
import path from 'path';

export default mergeConfig(
  viteBaseConfig,
  defineConfig({
    test: {
      include: [
        'spec/javascripts/**/*_spec.js',
        'spec/javascripts/**/*_spec.jsx',
      ],
      globals: true,
      setupFiles: path.join(__dirname, 'spec/javascripts/support/setup.js'),
      environment: 'jsdom',
    },
  })
);