Preparing for system design interviews?  Try bugzed.com →

Babel Plugin: Automatic JSX Test IDs

JSON →
library 1.1.0 ·javascript
verified Jun 17, 2026

This Babel plugin (`babel-plugin-jsx-auto-test-id`) automatically injects `data-test` attributes into the root HTML elements generated by JSX components. It infers the `data-test` ID from the component's display name, providing a consistent and maintenance-free solution for E2E test selectors. The current stable version is 1.1.0. While a formal release cadence isn't published, the 1.x versioning indicates stability and ongoing support. Its key differentiator is simplifying test automation setup by eliminating the need for manual `data-test` attribute management, which is crucial for reducing flaky tests and developer overhead in projects using frameworks like React with testing tools like Cypress or Playwright.

total hits 22
actors 5 distinct systems
last hit 19d ago ByteDance
ByteDance
6
GPTBot
4
Script
1
Search engines
4
Humans
3

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France