测试:修正 AGC 测试文件的类型错误
- 按 vitest 0.34 的参数元组口径改写 mock 泛型 - 修正 noUncheckedIndexedAccess 下的下标访问 - 补齐与当前类型脱节的测试桩字段 - 按 scripts/*.mjs 的运行时契约补局部类型声明
This commit is contained in:
@@ -411,7 +411,10 @@ describe('素材上传后的清单快照必须配对', () => {
|
||||
revision: 3,
|
||||
manifest: manifest('project-live', []),
|
||||
};
|
||||
const invoke = async <T>(command: string): Promise<T> => {
|
||||
const invoke = async <T>(
|
||||
command: string,
|
||||
_args?: Record<string, unknown>,
|
||||
): Promise<T> => {
|
||||
switch (command) {
|
||||
case 'upload_local_asset':
|
||||
if (advanceOnUpload) {
|
||||
|
||||
Reference in New Issue
Block a user