Files
brain/tools/secretary-stop-hook.test.mjs
T

12 lines
764 B
JavaScript

import { describe, it, expect } from 'vitest';
// Дымовой тест активного хука: модуль импортируется без ошибок (все import'ы резолвятся, нет top-level
// побочных эффектов — main() под isCli-гардом не запускается под vitest). Ловит сломанный import после
// переразводки (подпроект B: хук больше не зовёт LLM/distill, только очередь + выстрел воркера).
describe('secretary-stop-hook (load smoke)', () => {
it('imports cleanly without executing main()', async () => {
const mod = await import('./secretary-stop-hook.mjs');
expect(mod).toBeTruthy();
});
});