Open History to see the last commit
1import { describe, expect, it, vi } from 'vitest'
2β
3describe('VueQueryDevtools', () => {
4 it('should return null in non-development environments', async () => {
5 vi.stubEnv('NODE_ENV', 'production')
6 vi.resetModules()
7β
8 try {
9 const { VueQueryDevtools } = await import('..')
10 expect((VueQueryDevtools as unknown as () => null)()).toBeNull()
11 } finally {
12 vi.unstubAllEnvs()
13 vi.resetModules()
14 }
15 })
16})