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

chore(box): convert to tests to rtl (FE-6557) #6756

Merged
merged 1 commit into from
Jun 7, 2024
Merged

chore(box): convert to tests to rtl (FE-6557) #6756

merged 1 commit into from
Jun 7, 2024

Conversation

nineteen88
Copy link
Contributor

@nineteen88 nineteen88 commented May 30, 2024

Proposed behaviour

  • convert tests to RTL
  • remove unnecessary style tests

Current behaviour

  • tests are currently written in Enzyme

Checklist

  • Commits follow our style guide
  • Unit tests added or updated if required

Comment on lines 16 to 17
// mock Logger.deprecate so that no console warnings occur while running the tests
const loggerSpy = jest.spyOn(Logger, "deprecate");
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: what do you think about removing this mock, so any legitimate warnings that the tests throw that need addressing aren't masked?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's worth trying to mock it for the specific test we want to ignore the console for, yes there's a small chance that specific one will have another legitimate console warning it's not likely a huge issue and removing the mock altogether means we'll have a lot of superfluous console logging polluting the output when we run our tests

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, is there any deprecation warnings we need to mock here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess that's actually hangover from when we had deprecation warnings on Box. So I'm happy to remove it.

@Parsium Parsium marked this pull request as ready for review June 6, 2024 09:22
@Parsium Parsium requested a review from a team as a code owner June 6, 2024 09:22
@nineteen88 nineteen88 merged commit 8e182a4 into master Jun 7, 2024
21 checks passed
@nineteen88 nineteen88 deleted the FE-6557 branch June 7, 2024 10:35
@carbonci
Copy link
Collaborator

carbonci commented Jun 7, 2024

🎉 This PR is included in version 137.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

4 participants