Skip to content

Commit

Permalink
build: ignore e2e folder for vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
bdromard committed Dec 12, 2024
1 parent 5dec1c4 commit 302c706
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions dashboard/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { defineConfig } from 'vitest/config';
import { sveltekit } from '@sveltejs/kit/vite';
import { svelteTesting } from '@testing-library/svelte/vite';
import { defineConfig } from "vitest/config";
import { sveltekit } from "@sveltejs/kit/vite";
import { svelteTesting } from "@testing-library/svelte/vite";

export default defineConfig({
plugins: [sveltekit(), svelteTesting()],
plugins: [sveltekit(), svelteTesting()],

test: {
include: ['src/**/*.{test,spec}.{js,ts}'],
environment: 'jsdom',
setupFiles: ['./vitest-setup.ts']
}
test: {
include: ["src/**/*.{test,spec}.{js,ts}"],
exclude: ["src/tests/e2e"],
environment: "jsdom",
setupFiles: ["./vitest-setup.ts"]
}
});

0 comments on commit 302c706

Please sign in to comment.