HEX
Server: nginx/1.28.3
System: Linux lightweb-s1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User: dawonefr-98 (1071)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/dnlightw-124/dn.lightweb.kr/node_modules/vue3-carousel/vitest.config.ts
import { resolve } from 'path'

import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vitest/config'

import { compilerOptions } from './tsconfig.json'

const resolvePaths = () => {
  return Object.fromEntries(
    Object.entries(compilerOptions.paths || {}).map(([key, value]) => [
      key.replace('/*', ''),
      resolve(__dirname, value[0].replace('/*', '/')),
    ])
  )
}

export default defineConfig({
  plugins: [vue()],
  test: {
    setupFiles: './vitest.setup.ts',
    environment: 'jsdom',
    globals: true,
    reporters: ['basic'],
    include: ['**/*.spec.{ts,tsx,js,jsx}'],
    outputFile: {
      junit: './junit-report.xml',
    },
    coverage: {
      provider: 'v8',
      reportsDirectory: 'coverage',
      reporter: ['text', 'text-summary'],
      include: ['src/**/*.ts'],
      exclude: ['*.spec.ts']
    },
    alias: resolvePaths(),
  },
  resolve: {
    extensions: ['.ts', '.tsx', '.js', '.json'],
  },
})