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

mrc-5953 vitest pt 2 #220

Merged
merged 1 commit into from
Nov 13, 2024
Merged

mrc-5953 vitest pt 2 #220

merged 1 commit into from
Nov 13, 2024

Conversation

M-Kusumgar
Copy link
Collaborator

@M-Kusumgar M-Kusumgar commented Nov 5, 2024

i dont think this one has anything super different from the old one, just more of those systematic changes, making sure types and function signatures match!

@M-Kusumgar M-Kusumgar changed the title second batch of tests mrc-5953 vitest pt 2 Nov 6, 2024
Copy link
Contributor

@EmmaLRussell EmmaLRussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of questions!

@@ -276,7 +275,7 @@ describe("RunPlot", () => {
fadePlot: false,
graphIndex: 0,
graphConfig
},
} as any,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need these as anys - is this not providing all the props the RunPlot expects? I suppose could spread an empty props object here if so, but probably not worth it!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

linkedXAxis was the issue in this one! yh just thought it wasnt worth it to add it cos we dont use linkedXAxis in most of these tests

@@ -95,7 +94,7 @@ describe("RunPlot for stochastic", () => {

// Generates expected plot data from model
const plotData = wodinPlot.props("plotData");
const data = plotData();
const data = plotData(0, 0, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's going on with this change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so WodinPlot.vue specifies the prop plotData as type (number, number, number) => WodinPlotData and it was giving typescript errors because we didnt put 3 args in it even though it doesnt matter but yh technically typescript is correct

@M-Kusumgar M-Kusumgar changed the base branch from mrc-5952 to mrc-5945 November 13, 2024 20:27
@M-Kusumgar M-Kusumgar merged commit 3a6aa27 into mrc-5945 Nov 13, 2024
0 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants