Thanks! Although react-select has its own tests, those tests do not integrate with our app. I write tests to test user behavior, so I will access third-party libraries to simulate user interaction within an app. I could mock but both ways come with a cost, and I think the tradeoffs for mocking doesn't outweigh testing with the actual component. (But I won't ever say "I won't ever use a mock")
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks! Although react-select has its own tests, those tests do not integrate with our app. I write tests to test user behavior, so I will access third-party libraries to simulate user interaction within an app. I could mock but both ways come with a cost, and I think the tradeoffs for mocking doesn't outweigh testing with the actual component. (But I won't ever say "I won't ever use a mock")