mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 00:40:58 +01:00
* fix: restrict parts of manage navigation to admins * fix: restrict stats cards on manage home page * fix: restrict access to amount of certain stats for manage home * fix: restrict visibility of board create button * fix: restrict access to integration pages * fix: restrict access to tools pages for admins * fix: restrict access to user and group pages * test: adjust tests to match permission changes for routes * fix: remove certain pages from spotlight without admin * fix: app management not restricted
28 lines
685 B
TypeScript
28 lines
685 B
TypeScript
import react from "@vitejs/plugin-react";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
import { configDefaults, defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tsconfigPaths()],
|
|
test: {
|
|
setupFiles: ["./vitest.setup.ts"],
|
|
environment: "jsdom",
|
|
include: ["**/*.spec.ts"],
|
|
clearMocks: true,
|
|
poolOptions: {
|
|
threads: {
|
|
singleThread: false,
|
|
},
|
|
},
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["html", "json-summary", "json"],
|
|
all: true,
|
|
exclude: ["apps/nextjs/.next/"],
|
|
reportOnFailure: true,
|
|
},
|
|
|
|
exclude: [...configDefaults.exclude, "apps/nextjs/.next"],
|
|
},
|
|
});
|