Source Code added
This commit is contained in:
parent
800376eafd
commit
9efa9bc6dd
3912 changed files with 754770 additions and 2 deletions
30
server/test/vitest.config.mjs
Normal file
30
server/test/vitest.config.mjs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import swc from 'unplugin-swc';
|
||||
import tsconfigPaths from 'vite-tsconfig-paths';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
// Set the timezone to UTC to avoid timezone issues during testing
|
||||
process.env.TZ = 'UTC';
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
root: './',
|
||||
globals: true,
|
||||
include: ['src/**/*.spec.ts'],
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
include: ['src/cores/**', 'src/services/**', 'src/utils/**', 'src/sql-tools/**'],
|
||||
exclude: [
|
||||
'src/services/*.spec.ts',
|
||||
'src/services/api.service.ts',
|
||||
'src/services/microservices.service.ts',
|
||||
'src/services/index.ts',
|
||||
],
|
||||
},
|
||||
server: {
|
||||
deps: {
|
||||
fallbackCJS: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [swc.vite(), tsconfigPaths()],
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue