Matrix/Webserver/vite.config.ts

19 lines
452 B
TypeScript
Raw Normal View History

2023-11-23 12:22:59 +00:00
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config';
2024-02-22 09:35:06 +00:00
import { setGlobalDispatcher, ProxyAgent } from 'undici'
if (process.env.npm_config_https_proxy)
setGlobalDispatcher(
new ProxyAgent({
uri: new URL(process.env.npm_config_https_proxy).toString()
})
);
2023-11-23 12:22:59 +00:00
export default defineConfig({
plugins: [sveltekit()],
test: {
2023-11-23 12:24:38 +00:00
include: ['src/**/*.{test,spec}.{js,ts}'],
exclude: ['src/playwright']
2023-11-23 12:22:59 +00:00
}
});