133 Commits

Author SHA1 Message Date
Michał Pierzchała 716ac8f9ca v7.2.0 2021-03-02 12:59:24 +01:00
dependabot-preview[bot] a1afddbbb4 chore(deps-dev): bump flow-bin from 0.137.0 to 0.141.0 (#647)
Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.137.0 to 0.141.0.
- [Release notes](https://github.com/flowtype/flow-bin/releases)
- [Commits](https://github.com/flowtype/flow-bin/commits)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-07 11:07:39 +01:00
Michał d6265d9dcb chore: bump React Native to 0.64 RC (#626)
* chore: bump React Native to 0.64 RC

* Snapshot update

* Bumped node version to 12 on CI

* Removed removed supress_comment syntax from config

* codemod types-first

* Prettied files after codemod

* Added flow types to API returns

* don't return null from fireEvent handlers

* return ReactTestInstance instead of any

* fix render returning any

* less anys

* less anys

* simplify call type

* simplify

* add Flow to missing files, type debug better

Co-authored-by: Michał Parkitny <michal.parkitny@callstack.com>
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-12-09 17:49:39 +01:00
dependabot-preview[bot] 9a9abde40c chore(deps-dev): bump @types/react-test-renderer from 16.9.3 to 17.0.0 (#616)
Bumps [@types/react-test-renderer](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-test-renderer) from 16.9.3 to 17.0.0.
- [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>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-12-09 12:06:10 +01:00
dependabot-preview[bot] b8a9ba85ce chore(deps-dev): bump @release-it/conventional-changelog (#588)
Bumps [@release-it/conventional-changelog](https://github.com/release-it/conventional-changelog) from 1.1.4 to 2.0.0.
- [Release notes](https://github.com/release-it/conventional-changelog/releases)
- [Commits](https://github.com/release-it/conventional-changelog/compare/1.1.4...2.0.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-12-09 12:05:51 +01:00
Michał Pierzchała b9f9ab754e v7.1.0 2020-10-21 12:36:44 +02:00
Michał Klekowski 78fb456b8a feat: export container from render (#567)
* feat: export root test instance from render

* test: add tests for root test instance returned from render function

* docs: add description about root test instance returned from render function

* feat: change root export to container and wrap component in View if no wrapper defined

* docs: update description about container test instance returned from render function

* test: update tests for root test instance returned from render function

* test: clean up comments in tests

* feat: add react-native as peerDependency, clean up lint ignore for lines that was importing react-native

* revert adding default wrapper

* rework tests

* reword docs

* add testID checks

* add comments

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-10-21 12:26:01 +02:00
dependabot-preview[bot] 1b5569b9b6 chore(deps-dev): bump release-it from 13.7.0 to 14.0.3 (#565)
Bumps [release-it](https://github.com/release-it/release-it) from 13.7.0 to 14.0.3.
- [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/13.7.0...14.0.3)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-12 17:52:15 +02:00
dependabot-preview[bot] e489100fc1 chore(deps-dev): bump @testing-library/jest-native from 3.3.0 to 3.4.3
Bumps [@testing-library/jest-native](https://github.com/testing-library/jest-native) from 3.3.0 to 3.4.3.
- [Release notes](https://github.com/testing-library/jest-native/releases)
- [Changelog](https://github.com/testing-library/jest-native/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-native/compare/v3.3.0...v3.4.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-01 07:38:28 +00:00
dependabot-preview[bot] fc94b3b8a2 chore(deps-dev): bump typescript from 3.9.7 to 4.0.2 (#523)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.7 to 4.0.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.7...v4.0.2)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-01 19:37:09 +02:00
Michał Pierzchała 0aa9465856 v7.0.2 2020-08-16 21:28:12 +02:00
Michał Pierzchała 292e883611 v7.0.1 2020-07-31 10:35:11 +02:00
Michał Pierzchała cc5ef6c626 v7.0.0 2020-07-30 16:18:25 +02:00
Michał Pierzchała 3c0a2ecf02 chore(breaking): rename to @testing-library/react-native (#463) 2020-07-30 16:13:15 +02:00
dependabot-preview[bot] 7feab6c6da chore(deps-dev): bump @testing-library/jest-native from 3.1.0 to 3.3.0 (#466)
Bumps [@testing-library/jest-native](https://github.com/testing-library/jest-native) from 3.1.0 to 3.3.0.
- [Release notes](https://github.com/testing-library/jest-native/releases)
- [Changelog](https://github.com/testing-library/jest-native/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-native/compare/v3.1.0...v3.3.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-30 13:06:13 +02:00
Michał Pierzchała 9a13eccdad v2.2.0 2020-07-30 13:00:26 +02:00
Michał Pierzchała d84f8f8e2c Release 2.1.1 2020-07-16 15:07:40 +02:00
dependabot-preview[bot] f6af344b48 chore(deps-dev): bump @types/react-native from 0.62.18 to 0.63.0 (#435)
Bumps [@types/react-native](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-native) from 0.62.18 to 0.63.0.
- [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>
2020-07-14 12:09:12 +02:00
Michał Pierzchała edc6712a5a v2.1.0 2020-06-10 08:24:39 +02:00
Michał Pierzchała fa50f7f767 v2.0.1 2020-06-03 16:03:09 +02:00
Michał Pierzchała 7dc3ba3259 chore: use files entry instead of npmignore; reduce publish size (#371) 2020-06-03 15:38:55 +02:00
Michał Pierzchała 8e43ed5646 v2.0.0 2020-05-28 15:09:14 +02:00
Michał Pierzchała 16790a528e v2.0.0-rc.1 2020-05-28 15:06:04 +02:00
Michał Pierzchała cffd31802f v2.0.0-rc.0 2020-05-28 15:06:04 +02:00
Michał Pierzchała 163cc8533a chore(breaking): compile project to Node 10 using @babel/preset-env (#309)
* chore: compile project to Node 8.3 using @babel/preset-env

* update snapshots

* compile to Node 10

* adjust snapshots back

* add migration docs
2020-05-28 15:06:04 +02:00
dependabot-preview[bot] b5bfb28ed7 chore(deps-dev): bump strip-ansi from 5.2.0 to 6.0.0 (#331)
Bumps [strip-ansi](https://github.com/chalk/strip-ansi) from 5.2.0 to 6.0.0.
- [Release notes](https://github.com/chalk/strip-ansi/releases)
- [Commits](https://github.com/chalk/strip-ansi/compare/v5.2.0...v6.0.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-19 11:06:25 +02:00
Michał Pierzchała 6288299587 Release 1.14.0 2020-05-18 09:43:34 +02:00
Maciej Jastrzebski 414f8701a5 feat: Support for @testing-library/jest-native (#310)
* Added @testing-library/jest-native to devDependencies

* Tests for jest-native matchers

* Added @testing-library/jest-native install info

* Update README.md

* Update GettingStarted.md

* feat: add `findBy*` queries (#304)

* Basic async findBy queries

* Refactored findBy queries to be built with makeFindQuery

* findBy queries for A11y selectors

* Custom findByTestId implementation that avoids current getByTestId issues

* Fixed prettier issue

* Updates Queries.md with findBy queries

* Trying to fix test timeout error appearing only on CI

* Code review changes

* Added typescript types & tests

* prettier did reformat some code arround

* Removed export of GetByAPI, QueryByAPI and FindByAPI interfaces in TS

* Reversed prettier run on typings

* Added overlapping pieces with `within` operator

* Small cleanup

* Update website/docs/Queries.md

* Moved async/await tests to the end of test methods

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

* chore: bump eslint config to latest (#308)

* chore: bump eslint config to latest

* lint fix

* lint pass

* use roles directly

* Trying to fix CI build

* Added $FlowFixMe for missing flow expect extensions

* Small doc fixes

* Clarified failing toHaveProps matcher tests

* Moved lint ignore for color literals to .eslintrc

* Updated toHaveProp tests to avoid strange `Button` behavior

* Updated yarn.lock

* Update README.md

* Update website/docs/GettingStarted.md

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-05-18 09:37:59 +02:00
dependabot-preview[bot] c482f6ad07 chore(deps-dev): bump release-it from 12.6.3 to 13.6.0 (#312)
Bumps [release-it](https://github.com/release-it/release-it) from 12.6.3 to 13.6.0.
- [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/12.6.3...13.6.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-15 20:05:47 +02:00
dependabot-preview[bot] 966f7957c1 chore(deps-dev): bump eslint from 6.8.0 to 7.0.0 (#315)
Bumps [eslint](https://github.com/eslint/eslint) from 6.8.0 to 7.0.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/v6.8.0...v7.0.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-15 19:52:51 +02:00
Michał Pierzchała 29ce4f2b48 chore: bump eslint config to latest (#308)
* chore: bump eslint config to latest

* lint fix

* lint pass

* use roles directly
2020-05-15 10:10:49 +02:00
Michał Pierzchała 16718c3d6c chore: bump React Native to 0.63 RC (#301) 2020-05-12 13:45:41 +02:00
Michał Pierzchała 298a13831b chore: upgrade Jest deps to 26 (#302) 2020-05-12 13:34:32 +02:00
Michał Pierzchała 360a53d533 v1.13.2 2020-04-24 12:25:27 +02:00
Michał Pierzchała 68bfe6343c v1.13.1 2020-04-24 12:22:13 +02:00
Kenneth Kwakye-Gyamfi 0b00faeef7 Include links to the repository and the homepage (#287) 2020-04-24 12:15:29 +02:00
Kenneth Kwakye-Gyamfi 95b4889fe9 docs: add example of testing React Navigation (#277)
* Proof of concept -  CodeSandbox embed

* Prettier fix

* Moved examples below API Reference

* Created the examples directory

Includes react-navigation example

* Article on React Navigation

* Specify rootDir for testing

Prevents CI to run example tests

* remove jest-transform-stub and identity-obj-proxy, add transformIgnorePatterns

* update docs

* rearrange

* remove non-essential files

* rename Navigation -> AppNavigator

* reword comment

* add links and explanations

* remove index file, because it's not an app anyway

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-04-24 11:08:52 +02:00
Michał Pierzchała b0e5e1baea chore: regenerate lock files to remove vulnerability warnings (#285) 2020-04-23 16:24:06 +02:00
Michał Pierzchała d8fd1543e4 chore: bump RN to 0.62 (#273)
* chore: bump RN to 0.62

* disable accessibilityStates tests; fixups
2020-04-20 11:40:09 +02:00
Kacper Wiszczuk b67227d4b4 chore: lib upgrades (#268)
* Update libs

* Upgrade Typescript

* use flowconfig from 0.61

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
2020-03-18 20:00:31 +01:00
Michał Pierzchała 31ed2c48e3 chore: bump jest to v25 (#249) 2020-01-22 21:14:48 -06:00
Michał Pierzchała 008cae29b6 Release 1.12.0 2019-12-16 11:03:03 +01:00
Michał Pierzchała 94ff42527e chore: bump Flow and ESLint preset (#241)
* chore: bump Flow and ESLint preset

* fix name of waitForElement
2019-12-09 11:43:05 +01:00
greenkeeper[bot] f5aafb1c27 Update flow-bin to the latest version 🚀 (#209) 2019-07-29 10:49:48 +02:00
greenkeeper[bot] dc0d2a041c Update eslint to the latest version 🚀 (#195)
* chore(package): update eslint to version 6.0.0

* chore(package): update lockfile yarn.lock

* Fix linter
2019-07-21 15:54:26 +02:00
greenkeeper[bot] 581e6f681f Update flow-bin to the latest version 🚀 (#208) 2019-07-18 22:41:16 +02:00
greenkeeper[bot] e1b4d4651f chore(package): update react-native to version 0.60.4 (#207) 2019-07-18 15:06:25 +02:00
greenkeeper[bot] 2e180eb4c2 Update @callstack/eslint-config to the latest version 🚀 (#206) 2019-07-17 17:17:14 +02:00
Michał Pierzchała ad6d4f4083 v1.11.1 2019-07-17 12:11:31 +02:00
Michał Pierzchała 1382a3d7f6 chore: bump React Native to 0.60 (#204) 2019-07-16 18:14:42 +02:00