diff --git a/packages/tests/server/react/__testHelpers.tsx b/packages/tests/server/react/__testHelpers.tsx index 2856fc5418b..247d4b7c8a2 100644 --- a/packages/tests/server/react/__testHelpers.tsx +++ b/packages/tests/server/react/__testHelpers.tsx @@ -133,7 +133,7 @@ export function createAppRouter() { const last = items[items.length - 1]; const nextIndex = db.posts.findIndex((item) => item === last) + 1; if (db.posts[nextIndex]) { - nextCursor = db.posts[nextIndex]!.createdAt; + nextCursor = db.posts[nextIndex].createdAt; } return { items, @@ -174,10 +174,10 @@ export function createAppRouter() { const nextIndex = db.posts.findIndex((item) => item === last) + 1; const prevIndex = db.posts.findIndex((item) => item === first) - 1; if (db.posts[nextIndex]) { - nextCursor = db.posts[nextIndex]!.createdAt; + nextCursor = db.posts[nextIndex].createdAt; } if (db.posts[prevIndex]) { - prevCursor = db.posts[prevIndex]!.createdAt; + prevCursor = db.posts[prevIndex].createdAt; } return { items, diff --git a/packages/tests/server/react/invalidateRouters.test.tsx b/packages/tests/server/react/invalidateRouters.test.tsx index c2873fdbc58..31054eed88b 100644 --- a/packages/tests/server/react/invalidateRouters.test.tsx +++ b/packages/tests/server/react/invalidateRouters.test.tsx @@ -145,7 +145,7 @@ const ctx = konn() const last = items[items.length - 1]; const nextIndex = db.posts.findIndex((item) => item === last) + 1; if (db.posts[nextIndex]) { - nextCursor = db.posts[nextIndex]!.createdAt; + nextCursor = db.posts[nextIndex].createdAt; } return { items,