mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-21 17:12:33 +08:00
27 lines
534 B
TypeScript
27 lines
534 B
TypeScript
/// <reference types="vitest" />
|
|
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import viteTsConfigPaths from 'vite-tsconfig-paths';
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
port: 4200,
|
|
host: 'localhost',
|
|
},
|
|
plugins: [
|
|
react(),
|
|
viteTsConfigPaths({
|
|
root: '../../',
|
|
}),
|
|
],
|
|
|
|
test: {
|
|
globals: true,
|
|
cache: {
|
|
dir: '../../node_modules/.vitest',
|
|
},
|
|
environment: 'jsdom',
|
|
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
},
|
|
});
|