Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
const fr = 10;
const forceStub = jest.fn();
d3ForceX.mockImplementation(() => ({ strength: () => fr }));
d3ForceY.mockImplementation(() => ({ strength: () => fr }));
d3ForceManyBody.mockImplementation(() => ({ strength: () => fr }));
forceStub.mockImplementation(() => ({ force: forceStub }));
d3ForceSimulation.mockImplementation(() => ({ force: forceStub }));
utils.merge.mockImplementation(() => ({ config: "config" }));
});