-
Notifications
You must be signed in to change notification settings - Fork 367
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
test: [M3-8565] - Add unit tests for rest of NodeBalancers package #10945
Conversation
Coverage Report: β
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/manager/src/features/NodeBalancers/NodeBalancerConfigNode.test.tsx
Outdated
Show resolved
Hide resolved
@@ -28,7 +28,7 @@ const node: NodeBalancerConfigNodeFields = { | |||
weight: 100, | |||
}; | |||
|
|||
const props: NodeBalancerConfigPanelProps = { | |||
export const nbConfigPanelMockPropsForTest: NodeBalancerConfigPanelProps = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to not stick with props
for the variable name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I exported the props to use in NodeBalancerPassiveCheck.test.tsx
- thought it might be helpful to mirror how we update the names of interfaces for component props to be more specific when exporting them, and avoid something like import { props } from file
.
Can definitely change back to props though!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh gotcha, in that case I agree with how you handled it originally here ππΎ
packages/manager/src/features/NodeBalancers/NodeBalancerCreate.test.tsx
Outdated
Show resolved
Hide resolved
β¦Node.test.tsx Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com>
β¦.test.tsx Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com>
This is weird... probably something to do with this privacy policy/EU check - maybe sometimes a region from the EU is chosen which triggers this check? cc @jdamore-linode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@coliu-akamai Thank you for adding testing coverage for NodeBalancers.
created M3-8600 to look into the test flake for |
Description π
Target release date ποΈ
n/a
How to test π§ͺ
yarn test NodeBalancers
- confirm all tests passAs an Author I have considered π€
Check all that apply