Remove unused deps (#24355)

* remove unused web test deps

Nothing runs vitest. The CI step that called `npm run test` is commented out, `web/__test__/` was deleted in https://github.com/blakeblackshear/frigate/pull/8983 so `setupFiles` points at a missing file, and there are no unit tests, so `npx vitest run` only picks up the Playwright specs and fails. jsdom, `@testing-library/jest-dom`, msw and fake-indexeddb were only there for vitest.

* update contributing docs

* remove unused deps
This commit is contained in:
Josh Hawkins
2026-09-15 14:02:02 -06:00
committed by GitHub
parent 0c52a3175d
commit ba41c90c07
5 changed files with 14 additions and 1498 deletions
-21
View File
@@ -1,4 +1,3 @@
/// <reference types="vitest/config" />
import path, { resolve } from "path";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
@@ -8,9 +7,6 @@ const proxyHost = process.env.PROXY_HOST || "localhost:5000";
// https://vitejs.dev/config/
export default defineConfig({
define: {
"import.meta.vitest": "undefined",
},
server: {
proxy: {
"/api": {
@@ -60,21 +56,4 @@ export default defineConfig({
"@": path.resolve(import.meta.dirname, "./src"),
},
},
test: {
environment: "jsdom",
alias: {
"testing-library": path.resolve(
import.meta.dirname,
"./__test__/testing-library.js",
),
},
setupFiles: ["./__test__/test-setup.ts"],
includeSource: ["src/**/*.{js,jsx,ts,tsx}"],
coverage: {
reporter: ["text-summary", "text"],
},
mockReset: true,
restoreMocks: true,
globals: true,
},
});