export default defineConfig()

in vite.config.ts [6:49]


export default defineConfig({
  root: __dirname,
  cacheDir: './node_modules/.vite/recipe-search-ui-playground',

  server: {
    port: 4200,
    host: 'localhost',
  },

  preview: {
    port: 4300,
    host: 'localhost',
  },

  plugins: [react(), nxViteTsPaths()],

  // Uncomment this if you are using workers.
  // worker: {
  //  plugins: [ nxViteTsPaths() ],
  // },

  build: {
    outDir: './dist/recipe-search-ui-playground',
    emptyOutDir: true,
    reportCompressedSize: true,
    commonjsOptions: {
      transformMixedEsModules: true,
    },
  },

  test: {
    watch: false,
    globals: true,
    environment: 'jsdom',
    include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
    passWithNoTests: true,

    reporters: ['default'],
    coverage: {
      reportsDirectory: './coverage/recipe-search-ui-playground',
      provider: 'v8',
    },
  },
});