Skip to content

Commit

Permalink
[New] configuration: add reset
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 4, 2018
1 parent f2da4cb commit d91d95b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/enzyme/src/configuration.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import validateAdapter from './validateAdapter';

const configuration = {};
let configuration = {};

export function get() {
return { ...configuration };
Expand All @@ -12,3 +12,8 @@ export function merge(extra) {
}
Object.assign(configuration, extra);
}

export function reset(replacementConfig = {}) {
configuration = {};
merge(replacementConfig);
}

0 comments on commit d91d95b

Please sign in to comment.