Another step to get tests running

This commit is contained in:
Pieter Vander Vennet 2023-02-08 02:47:32 +01:00
parent 071e5bf03a
commit f9f1a30921
6 changed files with 975 additions and 227 deletions

View file

@ -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"],