diff --git a/src/__tests__/element-queries.js b/src/__tests__/element-queries.js index 0739ea37..83a897f4 100644 --- a/src/__tests__/element-queries.js +++ b/src/__tests__/element-queries.js @@ -1,6 +1,16 @@ -import {configure} from '../config' +import {configure, getConfig} from '../config' import {render, renderIntoDocument} from './helpers/test-utils' +// set original config +let originalConfig +beforeAll(() => { + originalConfig = getConfig() +}) + +afterEach(() => { + configure(originalConfig) +}) + test('query can return null', () => { const { queryByLabelText, @@ -35,7 +45,7 @@ test('get throws a useful error message', () => { .toThrowErrorMatchingInlineSnapshot(` Unable to find a label with the text of: LucyRicardo - Ignored nodes: comments,