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

Simplify render performance assertions with custom matchers #4

Open
V3RON opened this issue Nov 20, 2024 · 0 comments
Open

Simplify render performance assertions with custom matchers #4

V3RON opened this issue Nov 20, 2024 · 0 comments

Comments

@V3RON
Copy link
Owner

V3RON commented Nov 20, 2024

User problem

Currently, users must write verbose and repetitive assertions when testing component render performance. This makes it challenging to quickly and clearly validate rendering behavior.

Proposed solution

Introduce custom matchers that allow developers to make intuitive, readable assertions directly on the profiling data returned by the measure() function.

Benefits

📝 More readable test code
🚀 Faster test writing
🔍 Clearer intent in performance tests
💡 Easier performance debugging

Acceptance criteria

  • Provide TypeScript type definitions
  • Ensure compatibility with Jest and other testing frameworks
  • Support both React Web and React Native packages
  • Create a new package, for example: @react-render-measurement-tool/matchers
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