Alpenwerk HR — HR-Stammdatenverwaltung Mitarbeiter:innen, Organisationsstruktur, Planstellen, Eintritt, Austritt, Versetzung, Beförderung, Karenz, On- und Offboarding, Berichte, Exporte, Massenimport und ein lückenloser Nachweis jeder Änderung. Next.js 16, React 19 und TypeScript; PostgreSQL über Kysely; Anmeldung ausschliesslich über Microsoft Entra ID. Die Fachlogik liegt in der Datenbank, die Zugriffsschranke ist Row Level Security. Betrieb auf Windows Server: siehe deploy/windows/README.md. Sicherheitskonzept: docs/sicherheitskonzept.md.
28 lines
763 B
TypeScript
28 lines
763 B
TypeScript
import path from "node:path";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
const alias = { "@": path.resolve(__dirname, ".") };
|
|
|
|
// Two projects in one run: pure logic keeps the node environment, component
|
|
// tests get jsdom. Splitting them keeps the ~100 logic tests from paying for
|
|
// a DOM they never touch.
|
|
export default defineConfig({
|
|
test: {
|
|
projects: [
|
|
{
|
|
resolve: { alias },
|
|
test: { name: "unit", environment: "node", include: ["tests/unit/**/*.test.ts"] },
|
|
},
|
|
{
|
|
resolve: { alias },
|
|
test: {
|
|
name: "components",
|
|
environment: "jsdom",
|
|
setupFiles: ["tests/components/setup.ts"],
|
|
include: ["tests/components/**/*.test.tsx"],
|
|
},
|
|
},
|
|
],
|
|
},
|
|
});
|