Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { createInfiniteQuery, infiniteQueryOptions } from '../../src/index.js'
import type { InfiniteData } from '@tanstack/query-core'

describe('queryOptions', () => {
// eslint-disable-next-line vitest/expect-expect
test('Should not allow excess properties', () => {
infiniteQueryOptions({
queryKey: ['key'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { createQueries, queryOptions } from '../../src/index.js'
import type { QueryObserverResult } from '@tanstack/query-core'

describe('queryOptions', () => {
// eslint-disable-next-line vitest/expect-expect
test('Should not allow excess properties', () => {
queryOptions({
queryKey: ['key'],
Expand Down Expand Up @@ -177,6 +178,7 @@ describe('queryOptions', () => {
>()
})

// eslint-disable-next-line vitest/expect-expect
test('Should allow undefined response in initialData', () => {
return (id: string | null) =>
queryOptions({
Expand Down
Loading