Skip to content

Commit 1c4f22b

Browse files
Clean up in afterEach instead of beforeEach
1 parent bb23329 commit 1c4f22b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/__tests__/get-by-errors.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {configure, getConfig} from '../config'
44
import {render} from './helpers/test-utils'
55

66
const originalConfig = getConfig()
7-
beforeEach(() => {
7+
afterEach(() => {
88
configure(originalConfig)
99
})
1010

src/__tests__/query-helper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as queryHelpers from '../query-helpers'
22
import {configure, getConfig} from '../config'
33

44
const originalConfig = getConfig()
5-
beforeEach(() => {
5+
afterEach(() => {
66
configure(originalConfig)
77
})
88

0 commit comments

Comments
 (0)