forked from MapComplete/MapComplete
Another step to get tests running
This commit is contained in:
parent
071e5bf03a
commit
f9f1a30921
6 changed files with 975 additions and 227 deletions
|
@ -1,6 +1,11 @@
|
|||
import { defineConfig } from "vitest/config"
|
||||
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
import autoPreprocess from "svelte-preprocess";
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
svelte({ hot: !process.env.VITEST,
|
||||
preprocess: [autoPreprocess()] }),
|
||||
],
|
||||
test: {
|
||||
globals: true,
|
||||
setupFiles: ["./test/testhooks.ts"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue