MCPcopy
hub / github.com/liabru/matter-js / resetEnvironment

Function resetEnvironment

test/ExampleWorker.js:233–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231};
232
233const resetEnvironment = () => {
234 global.console = consoleOriginal;
235 global.Date = DateOriginal;
236 global.window = undefined;
237 global.document = undefined;
238 global.Matter = undefined;
239 mock.stopAll();
240};
241
242const captureExtrinsics = ({ world }, Matter) => ({
243 bodies: Matter.Composite.allBodies(world).reduce((bodies, body) => {

Callers 1

runExampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…