MCPcopy
hub / github.com/learnhouse/learnhouse / preUpgrade

Function preUpgrade

apps/cli/tests/integration.test.ts:617–618  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

615 // from the `backup` command's .tar.gz archives), while the install is
616 // already on latest (a no-op re-pull that must still succeed and stay up).
617 const preUpgrade = (dir: string) =>
618 (fs.existsSync(dir) ? fs.readdirSync(dir) : []).filter((f) => /^db-pre-upgrade-.*\.sql\.gz$/.test(f))
619
620 it('a plain `update` writes a pre-upgrade backup, keeps the new image and stays healthy', async () => {
621 const backupsDir = path.join(installDir, 'backups')

Callers 1

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected