mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-09 08:12:48 +03:00
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:
@@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user