setup vite testing and able to run test

This commit is contained in:
Simon
2024-07-02 17:10:07 -04:00
parent 5e9b8ac84e
commit 452416ae18
6 changed files with 943 additions and 77 deletions

View File

@@ -1,9 +1,15 @@
/// <reference types="vitest" />
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// Import path module for resolving file paths
import { resolve } from 'path';
export default defineConfig({
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['./src/test/setup.ts']
},
plugins: [react()],
build: {
rollupOptions: {