Skip to content

Commit

Permalink
test: set 0ms timeout in cypress env
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Feb 20, 2023
1 parent ff30e67 commit 162c36c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions globals.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
interface Window { Cypress: any; }

declare type AppEnvEnum = import('./src/globalTypes').AppEnvEnum

declare var APP_ENV: AppEnvEnum
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useDebouncedSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { debounce, DebouncedFunc } from 'lodash'
import { LazyQueryExecFunction } from '@apollo/client'
import { DateTime } from 'luxon'

export const DEBOUNCE_SEARCH_MS = 500
export const DEBOUNCE_SEARCH_MS = window.Cypress ? 0 : 500

export type UseDebouncedSearch = (
searchQuery?: LazyQueryExecFunction<
Expand Down

0 comments on commit 162c36c

Please sign in to comment.