Skip to content

Commit c9bc600

Browse files
AndaristTkDodo
andauthored
chore: use better Thrower declaration in tests (#9884)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
1 parent ae47807 commit c9bc600

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/react-query/src/__tests__/HydrationBoundary.test.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,10 @@ describe('React hydration', () => {
211211
const newDehydratedState = dehydrate(intermediateClient)
212212
intermediateClient.clear()
213213

214-
function Thrower() {
214+
function Thrower(): never {
215215
throw new Promise(() => {
216216
// Never resolve
217217
})
218-
219-
// @ts-expect-error
220-
return null
221218
}
222219

223220
React.startTransition(() => {

0 commit comments

Comments
 (0)