Update all non-major dependencies
[ProtonMail-WebClient.git] / applications / wallet / vitest.config.ts
blob7f216a79f22a10a208beaabf7a95d4d297b70893
1 import react from '@vitejs/plugin-react-swc';
2 import path from 'path';
3 import wasm from 'vite-plugin-wasm';
4 import { defineConfig } from 'vitest/config';
6 export default defineConfig({
7     plugins: [react(), wasm()],
8     css: {
9         preprocessorOptions: {
10             scss: {
11                 api: 'modern',
12             },
13         },
14     },
15     test: {
16         globals: true,
17         environment: 'happy-dom',
18         poolOptions: {
19             threads: { singleThread: true },
20         },
21         reporters: ['basic'],
22         setupFiles: './vitest.setup.ts',
23         maxWorkers: 1,
24     },
25     resolve: {
26         alias: {
27             'proton-wallet': path.resolve(__dirname, './src/app'),
28         },
29         conditions: ['browser'],
30     },
31 });