mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 00:12:18 +00:00
style: apply prettier across the tree
One-shot prettier pass so the new format:check gate starts from a clean baseline. Formatting only — no behaviour change. Generator-owned and vendored artifacts stay untouched via .prettierignore.
This commit is contained in:
1 parent
b3fea2ef59
commit
1f4ba5939d
1000 files changed
+12130
-8385
No files matched your search
@@ -17,11 +17,7 @@ import { resolve } from "node:path";
|
||||
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const AUTH_SHELL_PATH = resolve(
|
||||
__dirname,
|
||||
"..",
|
||||
"auth-shell.tsx",
|
||||
);
|
||||
const AUTH_SHELL_PATH = resolve(__dirname, "..", "auth-shell.tsx");
|
||||
const INSIGHTS_LAYOUT_PATH = resolve(
|
||||
__dirname,
|
||||
"..",
|
||||
@@ -35,9 +31,7 @@ const INSIGHTS_LAYOUT_PATH = resolve(
|
||||
describe("v1.4.34 IW-B — CoachLaunchProvider hoist", () => {
|
||||
it("imports the CoachLaunchProvider in the auth-shell", () => {
|
||||
const source = readFileSync(AUTH_SHELL_PATH, "utf8");
|
||||
expect(source).toContain(
|
||||
'from "@/lib/insights/coach-launch-context"',
|
||||
);
|
||||
expect(source).toContain('from "@/lib/insights/coach-launch-context"');
|
||||
expect(source).toContain("CoachLaunchProvider");
|
||||
});
|
||||
|
||||
@@ -62,9 +56,7 @@ describe("v1.4.34 IW-B — CoachLaunchProvider hoist", () => {
|
||||
it("no longer mounts any Coach surface in the routed insights layout", () => {
|
||||
const source = readFileSync(INSIGHTS_LAYOUT_PATH, "utf8");
|
||||
// The provider import drops; the drawer mount lives on the shell.
|
||||
expect(source).not.toContain(
|
||||
'from "@/lib/insights/coach-launch-context"',
|
||||
);
|
||||
expect(source).not.toContain('from "@/lib/insights/coach-launch-context"');
|
||||
expect(source).not.toContain("import { LayoutCoachMount }");
|
||||
// v1.16.8 — the FAB moved to the shell too; the routed layout must
|
||||
// not double-mount it. (The docblock may still narrate the move, so
|
||||
|
||||
@@ -35,12 +35,8 @@ describe("nav-model destination list", () => {
|
||||
it("orders the core spine: dashboard → measurements → mood → medications", () => {
|
||||
const hrefs = NAV_DESTINATIONS.map((d) => d.href);
|
||||
expect(hrefs.indexOf("/")).toBeLessThan(hrefs.indexOf("/measurements"));
|
||||
expect(hrefs.indexOf("/measurements")).toBeLessThan(
|
||||
hrefs.indexOf("/mood"),
|
||||
);
|
||||
expect(hrefs.indexOf("/mood")).toBeLessThan(
|
||||
hrefs.indexOf("/medications"),
|
||||
);
|
||||
expect(hrefs.indexOf("/measurements")).toBeLessThan(hrefs.indexOf("/mood"));
|
||||
expect(hrefs.indexOf("/mood")).toBeLessThan(hrefs.indexOf("/medications"));
|
||||
});
|
||||
|
||||
it("every destination carries an i18n key under the nav namespace", () => {
|
||||
@@ -65,7 +61,6 @@ describe("nav-model destination list", () => {
|
||||
const hrefs = NAV_DESTINATIONS.map((d) => d.href);
|
||||
expect(hrefs).not.toContain("/insights/recovery");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe("nav-model utility tail (N-1 — one shared list)", () => {
|
||||
@@ -184,9 +179,9 @@ describe("mobileMoreHubDestinations — the F-1 mobile invariant (N-2)", () => {
|
||||
const expectedFeatures = visibleNavDestinations(opts.modules)
|
||||
.map((d) => d.href)
|
||||
.filter((href) => !BOTTOM_NAV_PRIMARY_SLOT_HREFS.includes(href));
|
||||
const expectedTail = visibleUtilityDestinations(
|
||||
opts.bugReportEnabled,
|
||||
).map((d) => d.href);
|
||||
const expectedTail = visibleUtilityDestinations(opts.bugReportEnabled).map(
|
||||
(d) => d.href,
|
||||
);
|
||||
|
||||
expect(hub).toEqual([...expectedFeatures, ...expectedTail]);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user