Skip to content
New issue

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

todo #36

Open
tbo47 opened this issue Sep 13, 2024 · 2 comments
Open

todo #36

tbo47 opened this issue Sep 13, 2024 · 2 comments
Assignees

Comments

@tbo47
Copy link
Owner

tbo47 commented Sep 13, 2024

@tbo47 tbo47 self-assigned this Sep 25, 2024
@tbo47
Copy link
Owner Author

tbo47 commented Oct 1, 2024

@aloisklink thoughts?

@aloisklink
Copy link
Collaborator

I 100% agree with all of them!

👍

I think if we add a /** @param {Graph} g */ to most functions that use g as a parameter, that would greatly improve the types, and should hopefully catch any future bugs if we do try to do any lodash migrations/refactoring in the future!

  • is there more unit tests to import from legacy project?

I don't think there is.

There are some browser tests in the dagre-d3 repo that we could use: https://github.com/dagrejs/dagre-d3/tree/master/test, but because they need to run in a browser, adding them to this repo would be much harder. The test library they're using is pretty outdated, so it'll be quite a lot of work to use here.

But yes! I'd love to at least have one unit test that could have detected #40 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants