libs/overlay/vite.config.ts (29 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: 'jsdom', environmentOptions: { jsdom: { pretendToBeVisual: true, resources: 'usable', }, }, include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'], reporters: ['default'], coverage: { reportsDirectory: '../../coverage/libs/overlay', provider: 'v8', thresholds: { statements: 80, lines: 80, branches: 80, functions: 80, }, }, }, });