MCPcopy
hub / github.com/preactjs/preact / clearOptions

Function clearOptions

test/_util/helpers.jsx:198–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196
197let oldOptions = null;
198export function clearOptions() {
199 oldOptions = assign({}, options);
200 delete options.vnode;
201 delete options.diffed;
202 delete options.unmount;
203 delete options._diff;
204}
205
206/**
207 * Teardown test environment and reset preact's internal state

Callers

nothing calls this directly

Calls 1

assignFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…