mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-11-08 22:43:50 +00:00
19 lines
452 B
TypeScript
19 lines
452 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vitest/config';
|
|
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()
|
|
})
|
|
);
|
|
|
|
export default defineConfig({
|
|
plugins: [sveltekit()],
|
|
test: {
|
|
include: ['src/**/*.{test,spec}.{js,ts}'],
|
|
exclude: ['src/playwright']
|
|
}
|
|
});
|