From 0b3d36ed24df5e707770493e8878298d0ce6a12c Mon Sep 17 00:00:00 2001 From: Mathias Soeholm Date: Wed, 27 Jan 2021 18:38:24 +0100 Subject: [PATCH] Clean up in afterEach instead of beforeEach --- src/__tests__/get-by-errors.js | 2 +- src/__tests__/query-helper.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__tests__/get-by-errors.js b/src/__tests__/get-by-errors.js index 360ea338..366ea471 100644 --- a/src/__tests__/get-by-errors.js +++ b/src/__tests__/get-by-errors.js @@ -4,7 +4,7 @@ import {configure, getConfig} from '../config' import {render} from './helpers/test-utils' const originalConfig = getConfig() -beforeEach(() => { +afterEach(() => { configure(originalConfig) }) diff --git a/src/__tests__/query-helper.js b/src/__tests__/query-helper.js index 7e53ab03..b36e0904 100644 --- a/src/__tests__/query-helper.js +++ b/src/__tests__/query-helper.js @@ -2,7 +2,7 @@ import * as queryHelpers from '../query-helpers' import {configure, getConfig} from '../config' const originalConfig = getConfig() -beforeEach(() => { +afterEach(() => { configure(originalConfig) })