Skip to content

Commit 6d62cc6

Browse files
committed
fix: cleanup in afterEach
1 parent 652bad8 commit 6d62cc6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/__tests__/suggestions.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ beforeAll(() => {
77
})
88

99
afterEach(() => {
10-
configure({testIdAttribute: 'data-testid'})
10+
configure({testIdAttribute: 'data-testid', throwSuggestions: true})
1111
console.warn.mockClear()
1212
})
1313

@@ -110,7 +110,6 @@ test('should suggest when suggest is turned on for a specific query but disabled
110110
<button data-testid="foot">another</button>`)
111111

112112
expect(() => screen.getByTestId('foo', {suggest: true})).toThrowError()
113-
configure({throwSuggestions: true})
114113
})
115114

116115
test('should suggest getByRole when used with getBy', () => {

0 commit comments

Comments
 (0)