diff --git a/docs/ecosystem-react-select-event.md b/docs/ecosystem-react-select-event.md new file mode 100644 index 000000000..dbbd47f96 --- /dev/null +++ b/docs/ecosystem-react-select-event.md @@ -0,0 +1,42 @@ +--- +id: ecosystem-react-select-event +title: react-select-event +--- + +[`react-select-event`][gh] is a companion library for `react-testing-library` +that provides helper methods for interacting with [`react-select`][react-select] +elements. + +``` +npm install --save-dev react-select-event +``` + +```jsx +import React from 'react' +import Select from 'react-select' +import { render } from 'react-testing-library' +import selectEvent from 'react-select-event' + +const { getByTestId, getByLabelText } = render( +
+ +