From a759e5e84a79fece030cfc1492af8126c02ac68d Mon Sep 17 00:00:00 2001 From: Gpx Date: Sun, 23 Sep 2018 00:41:45 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20add=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc.js | 3 +++ README.md | 31 +++++++++++++++++++++++++++++++ other/dog.png | Bin 0 -> 3119 bytes 3 files changed, 34 insertions(+) create mode 100644 .prettierrc.js create mode 100644 README.md create mode 100644 other/dog.png 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 0000000000000000000000000000000000000000..3743b604b597656e5fd284fc875278385b00a039 GIT binary patch literal 3119 zcmYM0cQjn<8pa242yyg85G`F7F^DkAD1#u{=)Fc8M4w^wUWW`4QAZ6S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