We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f64545 commit fb069c9Copy full SHA for fb069c9
src/__tests__/suggestions.js
@@ -6,7 +6,14 @@ beforeAll(() => {
6
configure({throwSuggestions: true})
7
})
8
9
+beforeEach(() => {
10
+ // We're testing suggestions of find* queries but we're not interested in their time-related behavior.
11
+ // Real timers would make the test suite slower for no reason.
12
+ jest.useFakeTimers()
13
+})
14
+
15
afterEach(() => {
16
+ jest.useRealTimers()
17
configure({testIdAttribute: 'data-testid', throwSuggestions: true})
18
console.warn.mockClear()
19
0 commit comments