feat(assets): 优化移动端分析体验并记录 AI 提问日志
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
import { beforeEach } from 'node:test';
|
||||
import { questionLog } from './question-log.js';
|
||||
beforeEach(t => {
|
||||
if (!('mock' in t)) throw new Error('Expected test context');
|
||||
t.mock.method(questionLog, 'start', async () => 'synthetic-question');
|
||||
t.mock.method(questionLog, 'finish', async () => {});
|
||||
});
|
||||
import assert from "node:assert/strict";
|
||||
import test, { type TestContext } from "node:test";
|
||||
import { Hono } from "hono";
|
||||
|
||||
Reference in New Issue
Block a user