Preparing for system design interviews?  Try bugzed.com →

babel-plugin-react-data-testid

JSON →
library 0.2.0 ·javascript maintenance
verified Jun 17, 2026

Babel plugin that automatically adds data-testid attributes to JSX elements based on the component name. Current version 0.2.0, stable maintenance mode. Supports custom attribute names and multiple attributes via options. Does not support class components. Compared to alternatives like babel-plugin-jsx-remove-data-test-id, this plugin focuses on adding rather than stripping test IDs.

total hits 17
actors 4 distinct systems
last hit 19d ago AhrefsBot
GPTBot
4
ByteDance
4
Script
1
Humans
4

top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇬🇧 United Kingdom · 🇨🇦 Canada · VN