diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 00000000..44e9d201 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,3 @@ +module.exports = { + proseWrap: "always" +}; diff --git a/README.md b/README.md new file mode 100644 index 00000000..5842042c --- /dev/null +++ b/README.md @@ -0,0 +1,31 @@ +
+

user-event

+ + +dog + + +

Simulate user events for react-testing-library

+
+ +
+ +[![Build Status](https://travis-ci.org/Gpx/user-event.svg?branch=master)](https://travis-ci.org/Gpx/user-event) +[![Maintainability](https://api.codeclimate.com/v1/badges/75f1ff4397e994c6004e/maintainability)](https://codeclimate.com/github/Gpx/user-event/maintainability) +[![Test Coverage](https://api.codeclimate.com/v1/badges/75f1ff4397e994c6004e/test_coverage)](https://codeclimate.com/github/Gpx/user-event/test_coverage) + +## The problem + +From +[kentcdodds/dom-testing-library#107](https://github.com/kentcdodds/dom-testing-library/issues/107): + +> [...] it is becoming apparent the need to express user actions on a web page +> using a higher-level abstraction than `fireEvent` + +## The solution + +`user-event` tries to simulate the real events that would happen in the browser +as the user interacts with it. For example `userEvent.click(checkbox)` would +change the state of the checkbox. + +The library is still a work in progress and any help is appreciated. diff --git a/other/dog.png b/other/dog.png new file mode 100644 index 00000000..3743b604 Binary files /dev/null and b/other/dog.png differ