Babel Plugin: Automatic JSX Test IDs

JSON →
library 1.1.0 ·javascript
verified May 27, 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 33
actors 10 distinct systems
last hit 21h ago Amazonbot
Amazonbot
4
MetaBot
4
ByteDance
3
GPTBot
2
Script
1
ClaudeBot
1
Search engines
4
Humans
6

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇸🇬 Singapore · DZ