Skip to content

Tags: boyenn/react-testing-library

Tags

v5.0.0

Toggle v5.0.0's commit message
fix(change): no longer using Simulate.change

In real applications, your `onChange` handler wont be called if the
value did not change, so the tests shouldn't either. This is another
step toward us not using Simulate at all.

When using `fireEvent.change` make sure that you're setting the value
to change to via: `{target: {value: 'the value'}}` as the second arg.

BREAKING CHANGE: If you used the old form of value changes you'll need to update your code to the new form:

Before:

```js
formField.value = newValue;
fireEvent.change(formField);
```

After:

```js
fireEvent.change(formField, {target: {value: newValue}});
```

v4.1.8

Toggle v4.1.8's commit message
fix(change): no longer using Simulate.change

In real applications, your `onChange` handler wont be called if the
value did not change, so the tests shouldn't either. This is another
step toward us not using Simulate at all.

When using `fireEvent.change` make sure that you're setting the value
to change to via: `{target: {value: 'the value'}}` as the second arg.

v4.1.7

Toggle v4.1.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: force upgrade of dom-testing-library

Just because the new feature in 3.1.0 is one I want to make sure people get.

v4.1.6

Toggle v4.1.6's commit message
fix: Add baseElement to render return type (testing-library#151)

* fix: Add baseElement to render return type

* Set HTMLElement type to container and baseElement

v4.1.5

Toggle v4.1.5's commit message
fix(TS): declare optional argument to `debug` (testing-library#148)

v4.1.4

Toggle v4.1.4's commit message
fix: switch default baseElement to document.body (testing-library#145)

* Switch default baseElement to document.body; fixes dom-testing-library testing-library#81.

* add contributor to readme

Closes testing-library/dom-testing-library#81

v4.1.3

Toggle v4.1.3's commit message
fix: ensure waitForElement responds to attribute and textNode changes…

… by default (testing-library#137)

* Ensure waitForElement responds to attribute and textNode changes by default
* Add rbrtsmith as a contributor

v4.1.2

Toggle v4.1.2's commit message
fix(TS): clean up code from index.d.ts (testing-library#131)

* clean up code from index.d.ts

- export all types from 'dom-testing-library'
- use getQueriesForElement to get all GetsAndQueries
- remove duplicate code

* remove wait and waitForElement

* remove non used import

* use consistent void return

* unmount returns boolean

v4.1.1

Toggle v4.1.1's commit message
fix(TS): update typings with dom-testing-library queries and export t…

…hem (testing-library#130)

v4.1.0

Toggle v4.1.0's commit message
feat(render): return baseElement from render (testing-library#127)

* fix(render) return baseElement from render

* Update README.md

* tests: improve portals tests

* Update render.js

* Update render.js