mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-03-26 09:14:15 +08:00
Don't strip testID's in production
This commit is contained in:
@@ -33,7 +33,7 @@ class CoreComponent extends React.Component {
|
||||
<Component
|
||||
{...other}
|
||||
{...restyle({ className, style })}
|
||||
data-testid={process.env.NODE_ENV === 'production' ? null : testID}
|
||||
data-testid={testID}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user