Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: assert migration 314 missing-file skip (#7020)

[._.]/ Adam Eivy35e1c3736a4b
diff --git a/scripts/migrations/314-fastvideo-mlx-models.test.js b/scripts/migrations/314-fastvideo-mlx-models.test.js
index 904595f2c0..e57409c43a 100644
--- a/scripts/migrations/314-fastvideo-mlx-models.test.js
+++ b/scripts/migrations/314-fastvideo-mlx-models.test.js
@@ -1,4 +1,4 @@
-import { mkdirSync, readFileSync, rmSync, writeFileSync } from 'fs';
+import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'fs';
import { tmpdir } from 'os';
import { join } from 'path';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
@@ -17,8 +17,8 @@ describe('314-fastvideo-mlx-models migration', () => {
});
it('skips gracefully when media-models.json does not exist', async () => {
- await migration.up({ rootDir });
- expect(true).toBe(true);
+ await expect(migration.up({ rootDir })).resolves.toBeUndefined();
+ expect(existsSync(join(rootDir, 'data', 'media-models.json'))).toBe(false);
});
it('adds FastMetal models to an existing MLX registry', async () => {