diff --git a/tests/integration/activity-calendar-read.test.ts b/tests/integration/activity-calendar-read.test.ts index 4169cda1e..43bf17c16 100644 --- a/tests/integration/activity-calendar-read.test.ts +++ b/tests/integration/activity-calendar-read.test.ts @@ -8,7 +8,7 @@ * - a workout two devices recorded counts once, its minutes once; * - the window is exact: nothing before `fromKey` or after `toKey`. */ -import { beforeAll, describe, expect, it, vi } from "vitest"; +import { beforeAll, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; import { readActivityDays } from "@/lib/activity/calendar-read"; diff --git a/tests/integration/auth-ledger-cleanup.test.ts b/tests/integration/auth-ledger-cleanup.test.ts index be4ddcee4..a1a37931c 100644 --- a/tests/integration/auth-ledger-cleanup.test.ts +++ b/tests/integration/auth-ledger-cleanup.test.ts @@ -7,7 +7,7 @@ * token without an expiry all stay. The delete is batched and says when it * stopped with rows left. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import { cleanupAuthLedgers } from "@/lib/jobs/auth-ledger-cleanup"; diff --git a/tests/integration/backup-document-streaming.test.ts b/tests/integration/backup-document-streaming.test.ts index 2768a7644..251f71c68 100644 --- a/tests/integration/backup-document-streaming.test.ts +++ b/tests/integration/backup-document-streaming.test.ts @@ -23,7 +23,7 @@ import { createHash, randomBytes } from "node:crypto"; import v8 from "node:v8"; import vm from "node:vm"; -import { afterAll, beforeAll, describe, expect, it, vi } from "vitest"; +import { afterAll, beforeAll, describe, expect, it } from "vitest"; process.env.ENCRYPTION_KEY ??= "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"; diff --git a/tests/integration/backup-restore-memory.test.ts b/tests/integration/backup-restore-memory.test.ts index 56648a68b..e9702d61d 100644 --- a/tests/integration/backup-restore-memory.test.ts +++ b/tests/integration/backup-restore-memory.test.ts @@ -31,7 +31,7 @@ import v8 from "node:v8"; import vm from "node:vm"; -import { afterAll, beforeAll, describe, expect, it, vi } from "vitest"; +import { afterAll, beforeAll, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; diff --git a/tests/integration/backup-upload-document-memory.test.ts b/tests/integration/backup-upload-document-memory.test.ts index 1cf0c8949..6bd936c1e 100644 --- a/tests/integration/backup-upload-document-memory.test.ts +++ b/tests/integration/backup-upload-document-memory.test.ts @@ -42,7 +42,7 @@ import { once } from "node:events"; import v8 from "node:v8"; import vm from "node:vm"; -import { afterAll, beforeAll, describe, expect, it, vi } from "vitest"; +import { afterAll, beforeAll, describe, expect, it } from "vitest"; import { cookieJar, headerJar } from "./mock-next-headers"; import { getPrismaClient, truncateAllTables } from "./setup"; diff --git a/tests/integration/changepoint-extended.test.ts b/tests/integration/changepoint-extended.test.ts index 536c9df0c..32ce368c5 100644 --- a/tests/integration/changepoint-extended.test.ts +++ b/tests/integration/changepoint-extended.test.ts @@ -4,7 +4,7 @@ * (`readDayAggregates`); this proves that path finds a step, reports its * segment sizes, and leaves a switched-off module's metric unread. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; import { buildExtendedChangepointSignals } from "@/lib/insights/derived/changepoint"; diff --git a/tests/integration/coach-availability-probe.test.ts b/tests/integration/coach-availability-probe.test.ts index 6713eec3f..7a3453725 100644 --- a/tests/integration/coach-availability-probe.test.ts +++ b/tests/integration/coach-availability-probe.test.ts @@ -11,7 +11,7 @@ * The fixture is the reported case: a fortnight of glucose readings from April * 2024, deliberately outside every window the Coach can search. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; import { probeCoachAvailability } from "@/lib/ai/coach/tools/availability"; diff --git a/tests/integration/coach-stale-rollup-tail.test.ts b/tests/integration/coach-stale-rollup-tail.test.ts index a9093dcfc..26e13ea4d 100644 --- a/tests/integration/coach-stale-rollup-tail.test.ts +++ b/tests/integration/coach-stale-rollup-tail.test.ts @@ -30,7 +30,7 @@ * either compare a bucket's `computedAt` against the type's in-window * MAX(`updatedAt`), or invalidate on the hard-delete path — and that is a * larger change than this honesty repair. - */ import { beforeEach, describe, expect, it, vi } from "vitest"; + */ import { beforeEach, describe, expect, it } from "vitest"; process.env.ENCRYPTION_KEY ??= "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"; diff --git a/tests/integration/correlation-findings-before-seasonal-adjustment.test.ts b/tests/integration/correlation-findings-before-seasonal-adjustment.test.ts index b43a8b830..409fa2563 100644 --- a/tests/integration/correlation-findings-before-seasonal-adjustment.test.ts +++ b/tests/integration/correlation-findings-before-seasonal-adjustment.test.ts @@ -7,7 +7,7 @@ * (`AppSettings.correlationSeasonalEngineSince`), which the first discovery * sync of the new engine stamps before it writes, not by a calendar date. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; import { diff --git a/tests/integration/cycle-crosstab-day-aggregates.test.ts b/tests/integration/cycle-crosstab-day-aggregates.test.ts index 3c89c9b56..633853b10 100644 --- a/tests/integration/cycle-crosstab-day-aggregates.test.ts +++ b/tests/integration/cycle-crosstab-day-aggregates.test.ts @@ -6,7 +6,7 @@ * with two sources on the same days, two device types within one source, * dense CGM glucose, summed steps and readings next to Berlin midnight. */ -import { beforeAll, describe, expect, it, vi } from "vitest"; +import { beforeAll, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; import { readSourceDayAggregates } from "@/lib/measurements/day-aggregates"; diff --git a/tests/integration/daily-digest-today-overview.test.ts b/tests/integration/daily-digest-today-overview.test.ts index 5b64beffa..1b635764e 100644 --- a/tests/integration/daily-digest-today-overview.test.ts +++ b/tests/integration/daily-digest-today-overview.test.ts @@ -9,7 +9,7 @@ * AI provider is the subject on purpose: the overview has to be whole * without one. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import type { Prisma } from "@/generated/prisma/client"; import { loadDailyDigest } from "@/lib/daily/load-digest"; diff --git a/tests/integration/daily-series-user-tz.test.ts b/tests/integration/daily-series-user-tz.test.ts index 7d55f2e75..5b0df68d0 100644 --- a/tests/integration/daily-series-user-tz.test.ts +++ b/tests/integration/daily-series-user-tz.test.ts @@ -16,7 +16,7 @@ * the live instance has it, and asserts that the daily series (both the * rollup-backed read and the live aggregate) buckets by the user's day. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; import { diff --git a/tests/integration/demo-seed-shape.test.ts b/tests/integration/demo-seed-shape.test.ts index 92099600f..011f16933 100644 --- a/tests/integration/demo-seed-shape.test.ts +++ b/tests/integration/demo-seed-shape.test.ts @@ -18,7 +18,7 @@ * day-to-day steps around 1 to 2 mmHg outside the climb and the fall). The * peak also has a ceiling: past 148 the chart's padded axis jumps to 50-200. */ -import { beforeAll, describe, expect, it, vi } from "vitest"; +import { beforeAll, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; diff --git a/tests/integration/demo-seed-sources.test.ts b/tests/integration/demo-seed-sources.test.ts index 81254beec..bc07ab63f 100644 --- a/tests/integration/demo-seed-sources.test.ts +++ b/tests/integration/demo-seed-sources.test.ts @@ -10,7 +10,7 @@ * holds every Withings and Apple Health row against the type maps those * integrations ingest through. */ -import { beforeAll, describe, expect, it, vi } from "vitest"; +import { beforeAll, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; import { APPLE_HEALTH_TYPE_MAP } from "@/lib/measurements/apple-health-mapping"; diff --git a/tests/integration/dense-read-bounded.test.ts b/tests/integration/dense-read-bounded.test.ts index 95821e82b..81f157397 100644 --- a/tests/integration/dense-read-bounded.test.ts +++ b/tests/integration/dense-read-bounded.test.ts @@ -22,7 +22,7 @@ import v8 from "node:v8"; import vm from "node:vm"; -import { afterAll, beforeAll, describe, expect, it, vi } from "vitest"; +import { afterAll, beforeAll, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; import { buildGradedSeriesWithRollups } from "@/lib/insights/graded-series"; diff --git a/tests/integration/intake-late-take-future-slot.test.ts b/tests/integration/intake-late-take-future-slot.test.ts index 673405c4e..0d1f1a0c8 100644 --- a/tests/integration/intake-late-take-future-slot.test.ts +++ b/tests/integration/intake-late-take-future-slot.test.ts @@ -19,7 +19,7 @@ * dashboard composes (`computeDisplayDue` + the taken/scheduled tally) reflects * the correct state. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; diff --git a/tests/integration/intake-scheduled-for-targeting.test.ts b/tests/integration/intake-scheduled-for-targeting.test.ts index e6dcba33a..c9aabf03c 100644 --- a/tests/integration/intake-scheduled-for-targeting.test.ts +++ b/tests/integration/intake-scheduled-for-targeting.test.ts @@ -16,7 +16,7 @@ * 2. Marking the morning dose does NOT mark the evening dose (the evening * slot stays pending) and vice-versa. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; diff --git a/tests/integration/intake-slot-dedup.test.ts b/tests/integration/intake-slot-dedup.test.ts index d35b9114e..46db94780 100644 --- a/tests/integration/intake-slot-dedup.test.ts +++ b/tests/integration/intake-slot-dedup.test.ts @@ -17,7 +17,7 @@ * 4. taken > skipped tie-break keeps the taken row. * 5. Boot discovery only matches users that actually hold duplicates. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; diff --git a/tests/integration/local-day-keys.test.ts b/tests/integration/local-day-keys.test.ts index 4b9d4e50b..61333afa4 100644 --- a/tests/integration/local-day-keys.test.ts +++ b/tests/integration/local-day-keys.test.ts @@ -8,7 +8,7 @@ * 23:30 UTC is the next day in Berlin and still the same day in Los Angeles, * a reading at 03:00 UTC is the previous day in Los Angeles. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; import { readActivityDayKeys } from "@/lib/dashboard/summary-reads"; diff --git a/tests/integration/mfa-login-flow.test.ts b/tests/integration/mfa-login-flow.test.ts index 926c09dc2..aadf2cbd3 100644 --- a/tests/integration/mfa-login-flow.test.ts +++ b/tests/integration/mfa-login-flow.test.ts @@ -6,7 +6,7 @@ * that the recovery-code burn is durable and one-time, and that the challenge * ticket can be claimed exactly once. This exercises all three end to end. */ -import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeAll, beforeEach, describe, expect, it } from "vitest"; import * as OTPAuth from "otpauth"; import { getPrismaClient, truncateAllTables } from "./setup"; diff --git a/tests/integration/mood-insights-crosstab.test.ts b/tests/integration/mood-insights-crosstab.test.ts index fb2576ab9..3b91e8b50 100644 --- a/tests/integration/mood-insights-crosstab.test.ts +++ b/tests/integration/mood-insights-crosstab.test.ts @@ -8,7 +8,7 @@ * Exercises the widened measurement `type: { in: [...] }` filter and the * structured-tag join end-to-end against Postgres. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; import { fetchMoodAggregates } from "@/lib/insights/mood-aggregates"; diff --git a/tests/integration/partial-unique-live-rows.test.ts b/tests/integration/partial-unique-live-rows.test.ts index 571744249..238b51a20 100644 --- a/tests/integration/partial-unique-live-rows.test.ts +++ b/tests/integration/partial-unique-live-rows.test.ts @@ -20,7 +20,7 @@ * Postgres cannot arbiter against a partial unique). See migration 0121's * header for the full rationale. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; process.env.ENCRYPTION_KEY ??= "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"; diff --git a/tests/integration/pr-detection-cumulative-paged.test.ts b/tests/integration/pr-detection-cumulative-paged.test.ts index 16abfa6f8..b28910248 100644 --- a/tests/integration/pr-detection-cumulative-paged.test.ts +++ b/tests/integration/pr-detection-cumulative-paged.test.ts @@ -12,7 +12,7 @@ * best day sits in the middle of the history, and no read of the history is * unbounded. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; diff --git a/tests/integration/pr-detection-end-to-end.test.ts b/tests/integration/pr-detection-end-to-end.test.ts index 91e8d85e7..4f5beab14 100644 --- a/tests/integration/pr-detection-end-to-end.test.ts +++ b/tests/integration/pr-detection-end-to-end.test.ts @@ -18,7 +18,7 @@ * of going through pg-boss so the integration suite stays free of * out-of-process job-queue plumbing. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; diff --git a/tests/integration/provider-dense-fold.test.ts b/tests/integration/provider-dense-fold.test.ts index 095cdd3f1..b786eda3a 100644 --- a/tests/integration/provider-dense-fold.test.ts +++ b/tests/integration/provider-dense-fold.test.ts @@ -16,7 +16,7 @@ * day, deleted outright, expires the account's delta cursors. An Apple * Health fold expires nothing. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import { upsertGoogleHealthMeasurements } from "@/lib/google-health/sync-core"; import { runDenseIntradayRetention } from "@/lib/measurements/dense-intraday-retention"; diff --git a/tests/integration/rest-mode-chronic.test.ts b/tests/integration/rest-mode-chronic.test.ts index e335f3c50..413cd9d84 100644 --- a/tests/integration/rest-mode-chronic.test.ts +++ b/tests/integration/rest-mode-chronic.test.ts @@ -10,7 +10,7 @@ * digest's Day N, and the achievements streak freeze, which runs its own * episode query. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import type { Prisma } from "@/generated/prisma/client"; import { __resetAllCachesForTests } from "@/lib/cache/server-cache"; diff --git a/tests/integration/restore-consolidation-deadlock.test.ts b/tests/integration/restore-consolidation-deadlock.test.ts index 0e9deeb46..0374db4c0 100644 --- a/tests/integration/restore-consolidation-deadlock.test.ts +++ b/tests/integration/restore-consolidation-deadlock.test.ts @@ -28,15 +28,7 @@ * consolidation's day transaction and the first test fails with the * consolidation rejected on `40P01`. */ -import { - afterAll, - afterEach, - beforeEach, - describe, - expect, - it, - vi, -} from "vitest"; +import { afterAll, afterEach, beforeEach, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; import { acceptingBoss } from "./restore-job-driver"; diff --git a/tests/integration/soft-delete-purge.test.ts b/tests/integration/soft-delete-purge.test.ts index ce16cfbf6..3b2db4433 100644 --- a/tests/integration/soft-delete-purge.test.ts +++ b/tests/integration/soft-delete-purge.test.ts @@ -9,7 +9,7 @@ * it; a purged visit cascades its links; a start folded into a live cycle * stays; the coach facts keep their longer horizon. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import { TOMBSTONE_RETENTION_DAYS } from "@/lib/auth/native-client"; import { diff --git a/tests/integration/source-ladder-new-sources.test.ts b/tests/integration/source-ladder-new-sources.test.ts index f6a6379b4..406b3dbaf 100644 --- a/tests/integration/source-ladder-new-sources.test.ts +++ b/tests/integration/source-ladder-new-sources.test.ts @@ -9,7 +9,7 @@ * Health, and a day between two sources that were on the ladder before * resolves exactly as it did. */ -import { beforeAll, describe, expect, it, vi } from "vitest"; +import { beforeAll, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; import type { diff --git a/tests/integration/source-provenance.test.ts b/tests/integration/source-provenance.test.ts index 42b82c950..5bb8dd767 100644 --- a/tests/integration/source-provenance.test.ts +++ b/tests/integration/source-provenance.test.ts @@ -8,7 +8,7 @@ * day values count asleep stages only, and the comparison lines the two * sources up per day. */ -import { beforeAll, describe, expect, it, vi } from "vitest"; +import { beforeAll, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; import { diff --git a/tests/integration/tiered-context-local-day.test.ts b/tests/integration/tiered-context-local-day.test.ts index 2405d5094..e34f22229 100644 --- a/tests/integration/tiered-context-local-day.test.ts +++ b/tests/integration/tiered-context-local-day.test.ts @@ -14,7 +14,7 @@ * readings on that local day, 08:00 PDT (15:00Z) and 23:30 PDT (06:30Z on * the 9th), must form one bucket for the 8th. */ -import { beforeAll, describe, expect, it, vi } from "vitest"; +import { beforeAll, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; diff --git a/tests/integration/timeline-sleep-nights.test.ts b/tests/integration/timeline-sleep-nights.test.ts index a4c810e0e..3401039f8 100644 --- a/tests/integration/timeline-sleep-nights.test.ts +++ b/tests/integration/timeline-sleep-nights.test.ts @@ -9,7 +9,7 @@ * call one: CORE + DEEP + REM of the night's winning writer, IN_BED and * AWAKE left out, keyed by its wake day. */ -import { beforeEach, describe, expect, it, vi } from "vitest"; +import { beforeEach, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup"; diff --git a/tests/integration/tombstone-cleanup-restore-lock.test.ts b/tests/integration/tombstone-cleanup-restore-lock.test.ts index 16f5e882f..3fe3737f9 100644 --- a/tests/integration/tombstone-cleanup-restore-lock.test.ts +++ b/tests/integration/tombstone-cleanup-restore-lock.test.ts @@ -17,7 +17,7 @@ * `purgeTombstonesByAccount` and the purge waits out the hold, then deletes * the restoring account's tombstones once the stand-in rolls back. */ -import { afterAll, beforeEach, describe, expect, it, vi } from "vitest"; +import { afterAll, beforeEach, describe, expect, it } from "vitest"; import { getPrismaClient, truncateAllTables } from "./setup";