mirror of
https://tangled.org/tranquil.farm/tranquil-pds
synced 2026-08-16 22:36:07 +00:00
27 lines
631 B
TypeScript
27 lines
631 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
export default defineConfig({
|
|
plugins: [
|
|
svelte({
|
|
hot: false,
|
|
}),
|
|
],
|
|
define: {
|
|
__SVELTE_VERSION__: JSON.stringify("0.0.0-test"),
|
|
__SVELTE_I18N_VERSION__: JSON.stringify("0.0.0-test"),
|
|
__VITE_VERSION__: JSON.stringify("0.0.0-test"),
|
|
},
|
|
resolve: {
|
|
conditions: ["browser", "development"],
|
|
},
|
|
test: {
|
|
environment: "jsdom",
|
|
globals: true,
|
|
setupFiles: ["./src/tests/setup.ts"],
|
|
include: ["src/**/*.{test,spec}.{js,ts}"],
|
|
alias: {
|
|
"svelte": "svelte",
|
|
},
|
|
},
|
|
});
|