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

Proposal: Discuss Adding Unit Tests Alongside Frontend Migration to React and TypeScript #93

Open
yashpandey06 opened this issue Nov 25, 2024 · 1 comment

Comments

@yashpandey06
Copy link

Description

As the team is currently migrating the frontend to React and TypeScript, I would like to propose a discussion around incorporating unit tests as part of this migration process.

Why This is Important

  • Opportunity to Build a Strong Foundation: Since new pages and components will be introduced during the migration, this is an ideal time to integrate unit tests. It ensures that the new code is robust and maintainable from the start.
  • Improved Code Quality: Unit tests will help catch bugs early in the development cycle, reducing the risk of regressions and improving overall code quality.
  • Long-Term Benefits: Establishing a culture of writing unit tests now will make future development smoother and more reliable.

Proposed Approach

  • Use a preferred unit testing library (e.g., Jest, React Testing Library, etc.) to write tests for the new components and pages.
  • Discuss and finalize the testing strategy and library in a dedicated Slack channel to ensure alignment across the team.

Next Steps

  1. Initiate a discussion in the Slack channel to gather input from the team on the preferred testing library and approach.
  2. Align on a strategy for writing unit tests alongside the migration process.
  3. Document the agreed-upon approach for consistency moving forward.

Let’s use this opportunity to not only modernize the frontend but also improve the overall quality and reliability of our codebase.

@yashpandey06
Copy link
Author

@arkid15r lets discuss over it !

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

1 participant