test(server): build cron, trace and held-action stores on WaggleDB (P1.5)

These stores take Waggle's own database since ADR-0007; the tests still
handed them a MindDB. Only the store construction changes.
This commit is contained in:
shumeiko.it
2026-10-24 12:37:43 +02:00
parent 424b46db19
commit 88fbc0a9e7
8 changed files with 30 additions and 30 deletions

View File

@@ -2,17 +2,17 @@ import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';
import * as fs from 'node:fs';
import * as path from 'node:path';
import * as os from 'node:os';
import { MindDB, CronStore } from '@waggle/core';
import { WaggleDB, CronStore } from '@waggle/core';
import { LocalScheduler } from '../src/local/cron.js';
describe('LocalScheduler', () => {
let tmpDir: string;
let db: MindDB;
let db: WaggleDB;
let store: CronStore;
beforeEach(() => {
tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'waggle-sched-'));
db = new MindDB(path.join(tmpDir, 'test.mind'));
db = new WaggleDB(path.join(tmpDir, 'waggle.db'));
store = new CronStore(db);
});