Commit Graph

477 Commits

Author SHA1 Message Date
Michał Pierzchała 0c37fb8bff v8.0.0-rc.1 2021-06-28 11:43:57 +02:00
Michał Chudziak 6d6c46e28a Add Callstack reference (#758) 2021-06-25 15:02:12 +02:00
dependabot[bot] a018c7e1b1 chore(deps): bump ssri from 6.0.1 to 6.0.2 in /website (#716)
Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md)
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 13:56:19 +02:00
dependabot[bot] 5c6edb95c8 chore(deps): bump y18n from 4.0.0 to 4.0.1 in /website (#710)
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 13:56:09 +02:00
dependabot[bot] 4bcee9896c chore(deps): bump elliptic from 6.5.3 to 6.5.4 in /website (#698)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 13:55:57 +02:00
dependabot[bot] c1ef023689 chore(deps-dev): bump @types/react-native from 0.63.50 to 0.64.4 (#724)
Bumps [@types/react-native](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-native) from 0.63.50 to 0.64.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-native)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 13:55:21 +02:00
dependabot[bot] f0a1939c70 chore(deps-dev): bump @babel/preset-flow from 7.12.13 to 7.13.13 (#726)
Bumps [@babel/preset-flow](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-flow) from 7.12.13 to 7.13.13.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.13/packages/babel-preset-flow)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 13:55:12 +02:00
dependabot[bot] 738053b6ac chore(deps-dev): bump @babel/preset-react from 7.12.13 to 7.13.13 (#727)
Bumps [@babel/preset-react](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-react) from 7.12.13 to 7.13.13.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.13/packages/babel-preset-react)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 13:55:02 +02:00
dependabot[bot] c473f116e3 chore(deps-dev): bump @babel/cli from 7.13.0 to 7.13.16 (#729)
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.13.0 to 7.13.16.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.16/packages/babel-cli)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 13:54:43 +02:00
dependabot[bot] 7d545bbd50 chore(deps-dev): bump release-it from 14.4.1 to 14.6.1 (#730)
Bumps [release-it](https://github.com/release-it/release-it) from 14.4.1 to 14.6.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.4.1...14.6.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 13:54:35 +02:00
dependabot[bot] 15df6f3ca2 chore(deps): bump browserslist from 4.14.7 to 4.16.6 (#738)
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.14.7 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.14.7...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 13:54:18 +02:00
MattAgn ffda1de9f9 Extract tests by queries (#666)
* test: extract byText related tests

* test: extract byDisplayValue related tests

* test: extract byPlaceholderTest related tests

* test: delete unused code in byText test

* test: delete unused code in byTest tests

* test: delete unused code in byDisplayValue tests

* test: delete unused code in byPlaceholderText tests

* test: replace class components with function components
2021-05-17 16:30:57 +02:00
dependabot[bot] e716cc4197 chore(deps): bump handlebars from 4.7.6 to 4.7.7 (#731)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 14:17:32 +02:00
dependabot[bot] bdb6cb52de chore(deps): bump url-parse from 1.4.7 to 1.5.1 in /website (#733)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.4.7 to 1.5.1.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 14:17:23 +02:00
dependabot[bot] 1210d72f38 chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#734)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 14:17:14 +02:00
dependabot[bot] f93cef35fb chore(deps): bump lodash from 4.17.20 to 4.17.21 in /website (#735)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 14:17:06 +02:00
dependabot-preview[bot] dc96e75c5e Upgrade to GitHub-native Dependabot (#720)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-04-30 10:09:09 +02:00
Ray Chan e1d80d65fc docs: update NativeAnimatedHelper mock path in React Navigation example (#712)
* docs: update jest.mock for 'NativeAnimatedHelper' in React Navigation example (#711)

* Update website/docs/ReactNavigation.md

* Update website/docs/ReactNavigation.md

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2021-04-03 12:00:31 +02:00
Michael McDermott e0236a5117 fix: wrap unmount in act (#706) 2021-03-19 18:02:13 +01:00
McSam bc3d1bc4e8 docs: update Jest transformIgnorePatterns for React Navigation docs (#704) 2021-03-19 14:05:54 +01:00
Benjamin Reid e9f6d694f4 Debug implicit any error (#697)
* any return time for Debug (implicit any errors)

* Update typings/index.d.ts

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2021-03-03 18:18:48 +01:00
Michał Pierzchała 8021f098b6 v8.0.0-rc.0 v8.0.0-rc.0 2021-03-02 15:08:28 +01:00
dependabot-preview[bot] a46e641f40 chore(deps-dev): bump @types/react-native from 0.63.46 to 0.63.50 (#689)
Bumps [@types/react-native](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-native) from 0.63.46 to 0.63.50.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-native)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-02 15:04:35 +01:00
dependabot[bot] ee7c9d7c8d chore(deps): bump prismjs from 1.21.0 to 1.23.0 in /website (#692)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.21.0 to 1.23.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.21.0...v1.23.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-02 15:04:26 +01:00
dependabot-preview[bot] df4ccad21c chore(deps-dev): bump react-native from 0.64.0-rc.2 to 0.64.0-rc.4 (#693)
Bumps [react-native](https://github.com/facebook/react-native) from 0.64.0-rc.2 to 0.64.0-rc.4.
- [Release notes](https://github.com/facebook/react-native/releases)
- [Changelog](https://github.com/facebook/react-native/blob/master/Releases.md)
- [Commits](https://github.com/facebook/react-native/compare/v0.64.0-rc.2...v0.64.0-rc.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-02 15:04:13 +01:00
Pontus Lundin 8510d6d47c feat(breaking): do not throw because event handler was not found (#691)
* do not throw when event handler was not found

* remove unnecessary hasDescendandHandler

Co-authored-by: Pontus Lundin <pontus.lundin@klarna.com>
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2021-03-02 15:02:31 +01:00
Michał Pierzchała 62ccd08e13 feat: expose custom Jest preset restoring global Promise (#695)
* feat: expose custom Jest preset restoring global Promise

* typo
2021-03-02 14:24:56 +01:00
Mike Duminy 2ccec3c3a3 fix(breaking): use real timers internally to fix awaiting with fake timers (#568)
* capture global timers, use them in waitFor, tests+

* use real timers in flushMicroTasks

* test to show changes with modern timer mocks

* use enum-like object for timer modes

* fix tests

* remove default timer mode, add flow types
export other timer helpers, adjust tests and docs

* base waitFor on RTL implementation

* [jest] Capture and restore global promise

* [waitFor] Simulate intervals when using fake timers

* [tests] Fix waitForElementToBeRemoved

* cleanups; use more specific global

* rename globals to match others

Co-authored-by: Michael James Duminy <michael-james.duminy@klarna.com>
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2021-03-02 13:49:30 +01:00
dependabot-preview[bot] 77a9e2e05c chore(deps-dev): bump @babel/preset-env from 7.12.11 to 7.13.9
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.12.11 to 7.13.9.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.9/packages/babel-preset-env)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-02 12:04:35 +00:00
Michał Pierzchała 716ac8f9ca v7.2.0 v7.2.0 2021-03-02 12:59:24 +01:00
dependabot-preview[bot] 81353bbc6a chore(deps-dev): bump release-it from 14.2.2 to 14.4.1
Bumps [release-it](https://github.com/release-it/release-it) from 14.2.2 to 14.4.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.2.2...14.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 11:19:38 +00:00
dependabot-preview[bot] 25581cee03 chore(deps-dev): bump @babel/preset-react from 7.12.10 to 7.12.13
Bumps [@babel/preset-react](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-react) from 7.12.10 to 7.12.13.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.13/packages/babel-preset-react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 11:16:47 +00:00
dependabot-preview[bot] f137eaa6f7 chore(deps-dev): bump @babel/plugin-proposal-class-properties
Bumps [@babel/plugin-proposal-class-properties](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-class-properties) from 7.12.1 to 7.13.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.0/packages/babel-plugin-proposal-class-properties)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 11:11:56 +00:00
dependabot-preview[bot] 1d4e33d30e chore(deps-dev): bump @callstack/eslint-config from 10.1.0 to 10.2.0
Bumps [@callstack/eslint-config](https://github.com/callstack/eslint-config-callstack) from 10.1.0 to 10.2.0.
- [Release notes](https://github.com/callstack/eslint-config-callstack/releases)
- [Commits](https://github.com/callstack/eslint-config-callstack/compare/v10.1.0...v10.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 11:11:03 +00:00
dependabot-preview[bot] 6315ef7ffa chore(deps-dev): bump typescript from 4.1.3 to 4.2.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.1.3 to 4.2.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.1.3...v4.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 11:06:35 +00:00
dependabot-preview[bot] abf1966c1b chore(deps-dev): bump @types/react-test-renderer from 17.0.0 to 17.0.1
Bumps [@types/react-test-renderer](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-test-renderer) from 17.0.0 to 17.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-test-renderer)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 11:01:39 +00:00
dependabot-preview[bot] 07c3d8a63d chore(deps-dev): bump @babel/core from 7.12.10 to 7.13.8
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.12.10 to 7.13.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.8/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 11:00:08 +00:00
dependabot-preview[bot] 5738ff2bdf chore(deps-dev): bump @release-it/conventional-changelog
Bumps [@release-it/conventional-changelog](https://github.com/release-it/conventional-changelog) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/release-it/conventional-changelog/releases)
- [Commits](https://github.com/release-it/conventional-changelog/compare/2.0.0...2.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 10:59:10 +00:00
dependabot-preview[bot] 72bd4ce1fb chore(deps-dev): bump @babel/cli from 7.12.10 to 7.13.0
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.12.10 to 7.13.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.0/packages/babel-cli)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 10:56:32 +00:00
dependabot-preview[bot] 2880ad9e87 chore(deps-dev): bump @babel/preset-flow from 7.12.1 to 7.12.13
Bumps [@babel/preset-flow](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-flow) from 7.12.1 to 7.12.13.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.13/packages/babel-preset-flow)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 10:52:36 +00:00
dependabot-preview[bot] 15eb9059ef chore(deps-dev): bump @types/react from 17.0.0 to 17.0.2
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 17.0.0 to 17.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 10:49:50 +00:00
dependabot-preview[bot] 4f3ec07e50 chore(deps-dev): bump eslint from 7.19.0 to 7.21.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.19.0 to 7.21.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.19.0...v7.21.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 10:48:32 +00:00
Thakur Ballary 7b159a47e3 Fixed broken link of mock setup file (#673) 2021-02-28 20:50:03 +01:00
Michał 2aa6609523 feat: support pointerEvents (#655)
* test: add pointerEvents test

* feat: add pointerEvents handling

* test: add test for nested views

* feat: add pointerEvents box-none handling

* test: handle auto pointerEvents

* Update src/__tests__/fireEvent.test.js

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2021-02-05 15:05:46 +01:00
MattAgn 34fc03a8c9 Finish refactoring queries using new query builder makeQueries (#654)
* refactor: extract method filterNodeByType

* feat: use makeQueries for byText

* feat: use makeQueries for byPlaceholderText

* feat: use makeQueries for byDisplayValue

* refactor: renamed method in queryAllByTestId

* refactor: rename method makeQuery to makeA11yQuery

the renaming is done to avoid any confusion with makeQueries which should be the new way to add new queries

* test: add test for errors for byTestId

* sort exports

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2021-02-05 14:53:45 +01:00
dependabot-preview[bot] 6e38890e3d chore(deps-dev): bump @types/react-native from 0.63.37 to 0.63.46 (#661)
Bumps [@types/react-native](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-native) from 0.63.37 to 0.63.46.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-native)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-01 10:14:17 +01:00
dependabot-preview[bot] 7d3c3bec42 chore(deps-dev): bump eslint from 7.16.0 to 7.19.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.16.0 to 7.19.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.16.0...v7.19.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-01 08:46:49 +00:00
MattAgn f2a7cca3f2 fix: getByDisplayValue not checking TextInput's defaultValue (#656)
* fix: make getByDisplayValue check the default value of text inputs

* fix: make getByDisplayValue only use defaultValue if value is undefined

if the value of TextInput is an empty string, then the TextInput will not use the defaultValue and display the empty string. Our tests now do the same
2021-01-25 14:12:48 +01:00
Rsmouki f81ebc39d5 docs: fix typo in README.md (#657)
The jest.config file extention should be ".json" instead of  ".js"
2021-01-25 10:02:52 +01:00
MattAgn d71a7d8afc chore: restructure ByTestId queries code by predicate type (#608)
* refactor: add makeQueries functions

* refactor: use new query builders on byTestId

* rebase and rearrange to a bit

* add fixme

* refactor: make single function makeQueries

* doc: add TODO to do before end of pr

* fix: fix flow issue

* parametrize Queries

* chore: delete duplicated test

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2021-01-13 12:28:47 +01:00