AI: address review on PR #489

このコミットが含まれているのは:
Codex Night Worker
2026-11-22 02:20:10 +09:00
コミット bac44a9c22
6個のファイルの変更、176行の追加、8行の削除
+11
ファイルの表示
@@ -116,6 +116,17 @@ describe ('prefetchForURL', () => {
.toEqual ({ versions: [], count: 0 })
})
it ('propagates history prefetch failure to the navigation caller', async () => {
const client = qc ()
const error = new Error ('unavailable')
postsApi.fetchPostChanges.mockRejectedValueOnce (error)
await expect (prefetchForURL (client, '/ja/posts/changes?id=12'))
.rejects.toBe (error)
expect (client.getQueryData (postsKeys.changes (
{ post: '12', page: 1, limit: 20 }, 'ja'))).toBeUndefined ()
})
it ('preserves an external tag filter when prefetching one post history', async () => {
const client = qc ()
const params = { post: '12', externalTag: '7', page: 1, limit: 20 }