We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello everyone,
I would like to add units tests to the library using Jest for example.
I don't find any solutions to test the methods inside force-graph.js.
I try to do like this:
import ForceGraph from "../src/force-graph"; describe("graph2ScreenCoords", () => { test("should be defined", () => { expect(ForceGraph.methods.graph2ScreenCoords).toBeDefined(); }); });
I have the following error: TypeError: Cannot read properties of undefined (reading 'graph2ScreenCoords').
TypeError: Cannot read properties of undefined (reading 'graph2ScreenCoords')
Did you try to add units tests or do you have any thoughts following my error ?
Thanks :)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello everyone,
I would like to add units tests to the library using Jest for example.
I don't find any solutions to test the methods inside force-graph.js.
I try to do like this:
I have the following error:
TypeError: Cannot read properties of undefined (reading 'graph2ScreenCoords')
.Did you try to add units tests or do you have any thoughts following my error ?
Thanks :)
The text was updated successfully, but these errors were encountered: