Skip to content

Commit

Permalink
test(react-query-devtools): add test case for not in `process.env.NOD…
Browse files Browse the repository at this point in the history
…E_ENV='development'` (#6940)

* test(react-query-devtools): add test case for production mode

* chore: update

* chore: update

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
  • Loading branch information
manudeli and TkDodo committed Feb 27, 2024
1 parent d82c83e commit be2bf30
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { describe, expect, it } from 'vitest'
import { ReactQueryDevtools } from '..'

describe('ReactQueryDevtools not in process.env.NODE_ENV=development', () => {
it('should return null', () => {
expect(process.env.NODE_ENV).not.toBe('development')
expect(ReactQueryDevtools({})).toBeNull()
})
})

0 comments on commit be2bf30

Please sign in to comment.