mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 15:36:50 -05:00
* Upgrade to Vite 8 * Add release notes * PR feedback * [autofix.ci] apply automated fixes * PR feedback * fix: inject process.env * Restore deleted release note * Clean up and typecheck * Fix dev server * Fix type error * Fix tests * PR feedback --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
31 lines
551 B
TypeScript
31 lines
551 B
TypeScript
import path from 'path';
|
|
|
|
import react from '@vitejs/plugin-react';
|
|
import peggyLoader from 'vite-plugin-peggy-loader';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
const resolveExtensions = [
|
|
'.testing.ts',
|
|
'.mjs',
|
|
'.js',
|
|
'.mts',
|
|
'.ts',
|
|
'.jsx',
|
|
'.tsx',
|
|
'.json',
|
|
'.wasm',
|
|
];
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
include: ['src/**/*.web.test.(js|jsx|ts|tsx)'],
|
|
maxWorkers: 2,
|
|
},
|
|
resolve: {
|
|
extensions: resolveExtensions,
|
|
},
|
|
plugins: [react(), peggyLoader()],
|
|
});
|