Skip to content

Commit

Permalink
chore: "disable" test because of upstream issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo committed Sep 12, 2023
1 parent bc5fcdc commit a70b436
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Equal, Expect } from './utils'
describe('queryOptions', () => {
it('should not allow excess properties', () => {
doNotExecute(() => {
// @ts-expect-error stallTime does not exist
// @ts-expect-error this is a good error, because stallTime does not exist!
return queryOptions({
queryKey: ['key'],
queryFn: () => Promise.resolve(5),
Expand All @@ -20,6 +20,8 @@ describe('queryOptions', () => {
queryFn: () => Promise.resolve(5),
staleTime: 1000,
select: (data) => {
// @ts-expect-error data is in fact inferred as unknown
// see https://github.com/microsoft/TypeScript/issues/47599
const result: Expect<Equal<number, typeof data>> = true
return result
},
Expand Down

0 comments on commit a70b436

Please sign in to comment.