25 lines
652 B
TypeScript
25 lines
652 B
TypeScript
import { defineConfig } from 'vite'
|
|
|
|
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'
|
|
|
|
export default defineConfig({
|
|
root: __dirname,
|
|
cacheDir: '../../node_modules/.vite/libs/waku-utils',
|
|
|
|
plugins: [nxViteTsPaths()],
|
|
|
|
// Uncomment this if you are using workers.
|
|
// worker: {
|
|
// plugins: [ nxViteTsPaths() ],
|
|
// },
|
|
|
|
test: {
|
|
globals: true,
|
|
cache: { dir: '../../node_modules/.vitest' },
|
|
environment: 'node',
|
|
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
reporters: ['default'],
|
|
coverage: { reportsDirectory: '../../coverage/libs/waku-utils', provider: 'v8' },
|
|
},
|
|
})
|