Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

context.test.ts

8 lines279 Bytes

1import { describe, expect, it } from 'vitest'
2import { getIsRestoringContext } from '../context'
3​
4describe('getIsRestoringContext', () => {
5 it('Should not throw when called outside of a component', async () => {
6 expect(() => getIsRestoringContext()).to.not.throw()
7 })
8})