Skip to content

Add option to change DEFAULT_TIMEOUT globally #953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
douglasjunior opened this issue Apr 11, 2022 · 2 comments
Closed

Add option to change DEFAULT_TIMEOUT globally #953

douglasjunior opened this issue Apr 11, 2022 · 2 comments

Comments

@douglasjunior
Copy link

douglasjunior commented Apr 11, 2022

Describe the Feature

Add option to change default configuration (like DEFAULT_TIMEOUT) globally, like in "@testing-library/dom" https://testing-library.com/docs/dom-testing-library/api-configuration/

Possible Implementations

import {configure} from '@testing-library/react-native'

configure({
  asyncUtilTimeout: 5000,
  // etc...
})

Related Issues

testing-library/react-hooks-testing-library#812

@douglasjunior douglasjunior changed the title Add option to change DEFAULT_TIMEOUT globaly Add option to change DEFAULT_TIMEOUT globally Apr 11, 2022
@mdjastrzebski
Copy link
Member

Closing as implemented in in #1141.

@douglasjunior
Copy link
Author

Wow, amazing!

Thank you, @mdjastrzebski!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants