Add more testing stuff

This commit is contained in:
Schluffe
2026-09-26 14:12:35 +02:00
parent cb6946c9c7
commit e47df08232
13 changed files with 333 additions and 125 deletions
+20
View File
@@ -0,0 +1,20 @@
import { playwright } from "@vitest/browser-playwright";
import solid from "vite-plugin-solid";
import { defineConfig } from "vitest/config";
export default defineConfig({
plugins: [solid()],
test: {
dir: "vitest-example",
browser: {
enabled: true,
provider: playwright({
contextOptions: {
colorScheme: "dark",
},
}),
// https://vitest.dev/config/browser/playwright
instances: [{ browser: "chromium" }],
},
},
});