MCPcopy Create free account
hub / github.com/shoutem/theme / copyProps

Function copyProps

test-utils/setup.js:13–18  ·  view source on GitHub ↗
(src, target)

Source from the content-addressed store, hash-verified

11const { window } = jsdom;
12
13function copyProps(src, target) {
14 Object.defineProperties(target, {
15 ...Object.getOwnPropertyDescriptors(src),
16 ...Object.getOwnPropertyDescriptors(target),
17 });
18}
19
20global.window = window;
21global.document = window.document;

Callers 1

setup.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected