You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2020. It is now read-only.
The documentation mentions that queries can be passed as an option to render to specify which queries to bind, or add custom bound queries
react-native or expo: react-native
native-testing-library version: 2.0.1
react-native version: 0.59.5
node version: 8.15.1
npm (or yarn) version: yarn 1.15.2
Relevant code or config:
The following test should pass
test('returns the queries passed as options bound to the container',()=>{const_getQueryPassedAsOption={bind: jest.fn(()=>_getQueryPassedAsOption)}constqueries={getQueryPassedAsOption: _getQueryPassedAsOption};const{ container, getQueryPassedAsOption }=render(<View/>,{ queries });expect(queries.getQueryPassedAsOption.bind).toHaveBeenCalledWith(null,container);expect(getQueryPassedAsOption).toEqual(_getQueryPassedAsOption);});
Reproduction:
Add the test to any project with native-testing-library and it'll fail.
Problem description:
It should work as documented.
Suggested solution:
I'll submit a PR with the fix. Just give me a few minutes
The text was updated successfully, but these errors were encountered:
elyalvarado
added a commit
to elyalvarado/native-testing-library
that referenced
this issue
May 5, 2019
…ions
The documentation mentions that queries can be passed as an option
to render to specify which queries to bind, or add custom bound
queries. This commit fixes this behaviour and adds a regression test.
The documentation mentions that
queries
can be passed as an option to render to specify which queries to bind, or add custom bound queriesreact-native
orexpo
: react-nativenative-testing-library
version: 2.0.1react-native
version: 0.59.5node
version: 8.15.1npm
(oryarn
) version: yarn 1.15.2Relevant code or config:
The following test should pass
Reproduction:
Add the test to any project with
native-testing-library
and it'll fail.Problem description:
It should work as documented.
Suggested solution:
I'll submit a PR with the fix. Just give me a few minutes
The text was updated successfully, but these errors were encountered: