diff --git a/src/__tests__/helpers/source-files.ts b/src/__tests__/helpers/source-files.ts index 3f7867917..8ba2f27f1 100644 --- a/src/__tests__/helpers/source-files.ts +++ b/src/__tests__/helpers/source-files.ts @@ -123,34 +123,6 @@ export function readSourceText(path: string): string { return text; } -/** - * The files under `root` (as `walkSourceFiles` lists them) whose text holds - * at least one of `markers`, with that text. The substring test runs before - * any regular expression or parse the caller applies, which is where most of - * a sweep's time used to go. The floor applies to the files walked, as in - * `walkSourceFiles`; a caller that expects matches states its own floor over - * the result. - */ -export function sourcesContaining( - root: string, - markers: string | readonly string[], - options: { - floor: number; - extensions?: readonly string[]; - include?: (rel: string) => boolean; - }, -): Array<[rel: string, text: string]> { - const wanted = typeof markers === "string" ? [markers] : markers; - const out: Array<[string, string]> = []; - for (const rel of walkSourceFiles(root, options).filter( - options.include ?? (() => true), - )) { - const text = readSourceText(join(root, rel)); - if (wanted.some((marker) => text.includes(marker))) out.push([rel, text]); - } - return out; -} - export function walkSourceFiles( root: string, options: { floor: number; extensions?: readonly string[] }, diff --git a/src/lib/export/full-backup-payload.ts b/src/lib/export/full-backup-payload.ts index 5da9ef80d..2fd874af1 100644 --- a/src/lib/export/full-backup-payload.ts +++ b/src/lib/export/full-backup-payload.ts @@ -49,7 +49,7 @@ import type { VaccinationsBackupCounts } from "@/lib/export/vaccinations-backup" import type { VisitsBackupCounts } from "@/lib/export/visits-backup"; import { BACKUP_SCHEMA_VERSION } from "@/lib/validations/backup-summary"; -export { isDeferredRows, type DeferredRows } from "@/lib/export/deferred-rows"; +export { isDeferredRows } from "@/lib/export/deferred-rows"; export interface FullBackupCounts extends