We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
configuration
reset
1 parent f2da4cb commit d91d95bCopy full SHA for d91d95b
1 file changed
packages/enzyme/src/configuration.js
@@ -1,6 +1,6 @@
1
import validateAdapter from './validateAdapter';
2
3
-const configuration = {};
+let configuration = {};
4
5
export function get() {
6
return { ...configuration };
@@ -12,3 +12,8 @@ export function merge(extra) {
12
}
13
Object.assign(configuration, extra);
14
15
+
16
+export function reset(replacementConfig = {}) {
17
+ configuration = {};
18
+ merge(replacementConfig);
19
+}
0 commit comments