test(server): stop seeding a legacy personal mind (P1.5)

The server no longer opens personal.mind, so tests build it on an empty
data directory. The /memory command test seeds its two memories through
server.memory and now checks that the seeded text is found.
This commit is contained in:
shumeiko.it
2026-10-24 17:07:10 +02:00
parent f1cde9a32f
commit 6573f817b0
26 changed files with 13 additions and 235 deletions

View File

@@ -2,7 +2,6 @@ import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
import type { FastifyInstance } from 'fastify';
import { MindDB } from '@waggle/core';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { buildLocalServer } from '../../src/local/index.js';
import {
@@ -47,7 +46,6 @@ describe('Browser Companion pairing lifecycle', () => {
try {
fs.mkdirSync(path.join(dataDir, 'skills'), { recursive: true });
fs.writeFileSync(path.join(dataDir, 'skills', '.starter-installed'), 'test');
new MindDB(path.join(dataDir, 'personal.mind')).close();
server1 = await buildLocalServer({ dataDir });
const firstGlobalToken = server1.agentState.wsSessionToken;