libs/shared/vite.config.ts (17 lines of code) (raw):

import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; import { defineConfig } from 'vite'; export default defineConfig({ root: __dirname, plugins: [nxViteTsPaths()], // Uncomment this if you are using workers. // worker: { // plugins: [ nxViteTsPaths() ], // }, test: { globals: true, cache: false, environment: 'node', include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], reporters: ['default'], coverage: { reportsDirectory: '../../coverage/libs/shared', provider: 'v8', }, }, });