import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'

export function getBaseConfig() {
  return {
    plugins: [nxViteTsPaths()],

    test: {
      watch: false,
      globals: true,
      environment: 'jsdom',
      include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
      reporters: ['default'],
      coverage: {
        reportsDirectory: '../../coverage/apps/<%= projectName %>',
        provider: 'v8',
      },
    },
  }
}
