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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user