perf: improve Jest caching and configuration in web tests (#29881)

This commit is contained in:
yyh
2025-12-19 12:00:46 +08:00
committed by GitHub
parent 95a2b3d088
commit 80f11471ae
33 changed files with 496 additions and 111 deletions

View File

@@ -41,7 +41,7 @@ const AnnotationCtrlButton: FC<Props> = ({
setShowAnnotationFullModal()
return
}
const res: any = await addAnnotation(appId, {
const res = await addAnnotation(appId, {
message_id: messageId,
question: query,
answer,
@@ -50,7 +50,7 @@ const AnnotationCtrlButton: FC<Props> = ({
message: t('common.api.actionSuccess') as string,
type: 'success',
})
onAdded(res.id, res.account?.name)
onAdded(res.id, res.account?.name ?? '')
}
return (