DEV Community

Discussion on: Testing Non-Exported Functions in JavaScript

Collapse
 
leadersheir_ profile image
Warisul Imam

Can you test the functions in a React functional component with this?

Collapse
 
samanthaming profile image
Samantha Ming

Unfortunately, I’m not super familiar with React, so I’m not sure πŸ˜“ ...but if you find out, please do share! I’m sure others would love to know as well 😊

Collapse
 
leadersheir_ profile image
Warisul Imam • Edited

Alright, I'll have a go at it and let you know of the outcome.