Files
sui-data-sync/vite.config.ts
2024-05-23 17:14:27 +08:00

25 lines
653 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/sui-data-sync',
plugins: [nxViteTsPaths()],
// Uncomment this if you are using workers.
// worker: {
// plugins: [ nxViteTsPaths() ],
// },
test: {
globals: true,
cache: { dir: './node_modules/.vitest/sui-data-sync' },
environment: 'node',
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
reporters: ['default'],
coverage: { reportsDirectory: './coverage/sui-data-sync', provider: 'v8' },
},
});