Skip to content

Commit d91d95b

Browse files
committed
[New] configuration: add reset
1 parent f2da4cb commit d91d95b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/enzyme/src/configuration.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import validateAdapter from './validateAdapter';
22

3-
const configuration = {};
3+
let configuration = {};
44

55
export function get() {
66
return { ...configuration };
@@ -12,3 +12,8 @@ export function merge(extra) {
1212
}
1313
Object.assign(configuration, extra);
1414
}
15+
16+
export function reset(replacementConfig = {}) {
17+
configuration = {};
18+
merge(replacementConfig);
19+
}

0 commit comments

Comments
 (0)