Skip to content

Commit

Permalink
Clean up in afterEach instead of beforeEach
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiassoeholm committed May 12, 2021
1 parent 54614d7 commit 0b3d36e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/get-by-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {configure, getConfig} from '../config'
import {render} from './helpers/test-utils'

const originalConfig = getConfig()
beforeEach(() => {
afterEach(() => {
configure(originalConfig)
})

Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/query-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as queryHelpers from '../query-helpers'
import {configure, getConfig} from '../config'

const originalConfig = getConfig()
beforeEach(() => {
afterEach(() => {
configure(originalConfig)
})

Expand Down

0 comments on commit 0b3d36e

Please sign in to comment.