Skip to content

Conversation

@mathieumousnier
Copy link
Contributor

ref: #MANAGER-19097

image

@github-actions github-actions bot added the feature New feature label Dec 4, 2025
@mathieumousnier mathieumousnier marked this pull request as ready for review December 4, 2025 07:58
@mathieumousnier mathieumousnier requested a review from a team as a code owner December 4, 2025 07:58
@mathieumousnier mathieumousnier requested review from rjamet-ovh and removed request for a team December 4, 2025 07:58
expect(screen.getByTestId('NORTH_AMERICA')).toBeInTheDocument();
expect(screen.queryByTestId('ASIA')).not.toBeInTheDocument();
expect(screen.queryByTestId('AFRICA')).not.toBeInTheDocument();
expect(screen.queryByTestId('OTHERS')).not.toBeInTheDocument();
Copy link
Contributor

Choose a reason for hiding this comment

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

you can create a mocked constant like this

export const continentCodes: Record<ContinentCode, ContinentCode> = {
  EUROPE: 'EUROPE',
  NORTH_AMERICA: 'NORTH_AMERICA',
  ASIA: 'ASIA',
  AFRICA: 'AFRICA',
  OTHERS: 'OTHERS',
} as const;

that way, you can replace the hardcoded strings on your differents tests with continentCodes.EUROPE

ref: #MANAGER-19097

Signed-off-by: Mathieu Mousnier <mathieu.mousnier.ext@ovhcloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants