score:3
Accepted answer
babel-register
ignores node_modules
by default. You can set ignore:false
in your .babelrc
to disable that behavior. You could (probably should) also specify a more limited regular expression to avoid processing everything in node_modules
.
See the docs: https://babeljs.io/docs/usage/require/
Your complete config should probably look something like this:
.babelrc
{
"presets": ["react-native"],
"ignore": false
}
package.json
{
"ava": {
"babel": "inherit"
}
}
Source: stackoverflow.com
Related Query
- React Test Renderer: findAllByProps return double of what It should find when looking for testID in React Native
- Test config for AVA + React-Native
- React Native (View config getter callback for component `input` must be a function (received `undefined`). Make sure to start component names with)
- React native - view config getter callback for component 'input' must be a function (received 'undefined')
- How to test style for a React component attribute with Enzyme
- How to config ESLint for React on Atom Editor
- Figuring out how to mock the window size changing for a react component test
- How to add sourcemap in React Native for Production?
- How to test React Native Module?
- React Native: No propType for native prop RCTView.maxHeight
- How to adjust font size to fit view in React Native for Android?
- React & Jest, how to test changing state and checking for another component
- How can I test a change handler for a file-type input in React using Jest/Enzyme?
- React native for android run very slow when not enable "Debug JS"
- How to write test case for ErrorBoundary in React using Jest / Enzyme
- Building hybrid React apps for iOS and Android with native performance
- How to update webpack config for a react project created using create-react-app?
- In React Native how can I test my components with Shallow Rendering?
- Info.plist file for react native ios app using expo SDK
- Mocking clientHeight and scrollHeight in React + Enzyme for test
- React Native - There is no route defined for Login
- Typescript path mapping for React Native *.android.ts and *.ios.ts modules
- Text is getting cut off in android for react native
- TypeScript issues when creating ref for React Native TextInput
- React Native - Why we use the tintColor property for Image component?
- Will there be react native for windows phone?
- Flow type for specific React Native events?
- How to set up analytics on React Native for iOS
- How would I test for a react router route param in react-testing-library?
- Disable Debugging in Expo For React Native App
More Query from same tag
- Multiplicate values between objects by the index
- React Native + Firebase 9, cant use off() with reference to unsubscribe from onValue changes
- React-Query: How to useQuery when button is clicked
- Overriding types to prevent unsafe any calls
- react bootstrap acoordion cannot use pre tag or css white space for new line
- Having trouble saving a list of match data from riot api to a state array
- Check jshint errors before npm run build
- React+gsap use random animation element group can't work when it complete?
- Locally debugging a Reactjs code using firebase cli
- How to update React-Select state/ selected value via another input?
- cannot upload pictures to postgres database
- flexWrap not working for <Text> element in React Native
- Start search on Enter using React material-table
- Cannot use GraphQL queries in React - has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
- Authorizing the user
- How to use PanResponder in functional components?
- Why is the attribute seemingly being reverted?
- How can i open just one modal through a map function
- How to take alert.prompt input and use it to manipulate data?
- how to re render a list after updating an array state in a position in between (not at top or bottom in the list)?
- React table re-renders, losing focus when input text in table cell
- Actions may not have an undefined "type" property. in react?
- firebaseui signInSuccess redirect in callback
- How to configure craco to use jsx?
- How to use calculated div width to set text width in React
- React setState not Updating Immediately
- How to use react hook useeffect with adding event-handler depended on state?
- Combine values from different objects in same array - javascript
- React- Router not show component
- Using apollo and graphql higher order component to paginate data