{"library":"babel-plugin-react-native-testid","type":"library","category":null,"description":"A Babel plugin that automatically generates testID (and id) props for React Native components, designed to streamline automated testing with Detox, Appium, or similar frameworks. Current stable version is 0.2.1, released under an Apache-2.0 license, with no recent updates. Release cadence is low. Key differentiators: supports a multi-priority strategy for testID generation (manual props, meaningful attributes like title/placeholder, children text with i18n key extraction, fallback to component hierarchy), is highly configurable (attributes list, delimiter, ignore list, custom meaningful attributes), and ships TypeScript definitions. Alternatives like react-native-testid or babel-plugin-react-native-transform-testid offer simpler fixed-pattern approaches, whereas this plugin prioritizes semantic and stable IDs from props and i18n keys.","language":"javascript","status":"active","version":"0.2.1","tags":["javascript","babel","babel plugin","react-native","testid","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-react-native-testid","imports":["// In babel.config.js\nmodule.exports = { plugins: ['babel-plugin-react-native-testid'] }","import type { BabelPluginReactNativeTestIdOptions } from 'babel-plugin-react-native-testid'"]},{"cmd":"yarn add babel-plugin-react-native-testid","imports":[]},{"cmd":"pnpm add babel-plugin-react-native-testid","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-react-native-testid","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-react-native-testid/compatibility"}}