Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

859 B
Raw Blame
import fs from "node:fs";
import { parse } from "yaml";
import { expect, it } from "vitest";

type Update = {
  "package-ecosystem": string;
  directory: string;
  cooldown?: { "default-days"?: number };
};

it("keeps every Dependabot ecosystem behind the seven-day version-update cooldown", () => {
  const config = parse(fs.readFileSync(".github/dependabot.yml", "utf8")) as { version: number; updates: Update[] };
  expect(config.version).toBe(2);
  expect(config.updates.length).toBeGreaterThan(0);
  for (const update of config.updates) {
    const label = `${update["package-ecosystem"]}:${update.directory}`;
    const days = update.cooldown?.["default-days"];
    expect(Number.isInteger(days), `${label} must declare cooldown.default-days`).toBe(true);
    expect(days, `${label} must retain the minimum cooldown`).toBeGreaterThanOrEqual(7);
  }
});