deploy linting and first unit test maybe
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 11s

This commit is contained in:
2025-11-11 19:36:40 -08:00
parent 7f56ee55d6
commit 7df63c006f
6 changed files with 2488 additions and 7 deletions

View File

@@ -1,16 +1,27 @@
/// <reference types="vitest" />
import path from 'path';
import { defineConfig } from 'vite';
import { defineConfig as defineViteConfig } from 'vite';
import { defineConfig as defineVitestConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
export default defineConfig({
const vitestConfig = defineVitestConfig({
test: {
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts'],
},
});
const viteConfig = defineViteConfig({
plugins: [react()],
server: {
port: 3000,
host: '0.0.0.0',
},
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, '.'),
}
}
},
});
export default { ...viteConfig, test: vitestConfig.test };