mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 21:32: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
@@ -35,7 +35,9 @@ describe("GET /api/version", () => {
|
||||
it("returns the package.json version", async () => {
|
||||
const response = await (GET as unknown as () => Promise<Response>)();
|
||||
const body = (await response.json()) as VersionEnvelope;
|
||||
expect(body.data.version).toMatch(/^\d+\.\d+\.\d+(\.\d+)?(-[a-z0-9.-]+)?$/i);
|
||||
expect(body.data.version).toMatch(
|
||||
/^\d+\.\d+\.\d+(\.\d+)?(-[a-z0-9.-]+)?$/i,
|
||||
);
|
||||
expect(body.data.license).toBe("PolyForm-Noncommercial-1.0.0");
|
||||
expect(body.data.repository).toContain("github.com");
|
||||
expect(body.data.changelog).toContain("CHANGELOG");
|
||||
@@ -75,7 +77,9 @@ describe("GET /api/version", () => {
|
||||
process.env.NEXT_PUBLIC_APP_VERSION = " ";
|
||||
const response = await (GET as unknown as () => Promise<Response>)();
|
||||
const body = (await response.json()) as VersionEnvelope;
|
||||
expect(body.data.version).toMatch(/^\d+\.\d+\.\d+(\.\d+)?(-[a-z0-9.-]+)?$/i);
|
||||
expect(body.data.version).toMatch(
|
||||
/^\d+\.\d+\.\d+(\.\d+)?(-[a-z0-9.-]+)?$/i,
|
||||
);
|
||||
});
|
||||
|
||||
it("reports offlineGeoEnabled=false when the GeoLite2 databases are absent", async () => {
|
||||
|
||||
@@ -45,7 +45,8 @@ export const GET = apiHandler(async () => {
|
||||
// BuildKit-layer cache hit on `pnpm build` can never re-ship the
|
||||
// prior release's version string. Local `pnpm dev` (env unset) falls
|
||||
// through to package.json as before.
|
||||
const version = process.env.NEXT_PUBLIC_APP_VERSION?.trim() || packageJson.version;
|
||||
const version =
|
||||
process.env.NEXT_PUBLIC_APP_VERSION?.trim() || packageJson.version;
|
||||
const buildSha = process.env.NEXT_PUBLIC_APP_BUILD_SHA?.trim() || null;
|
||||
const builtAt = process.env.NEXT_PUBLIC_APP_BUILT_AT?.trim() || null;
|
||||
const offlineGeoEnabled = offlineGeoReady();
|
||||
|
||||
Reference in new issue
Block a user