react-native-testing-library icon indicating copy to clipboard operation
react-native-testing-library copied to clipboard

Add option to change DEFAULT_TIMEOUT globally

Open douglasjunior opened this issue 2 years ago • 0 comments

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

https://github.com/testing-library/react-hooks-testing-library/issues/812

douglasjunior avatar Apr 11 '22 19:04 douglasjunior