You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Chore: Mobile: Increase test waitFor timeouts (#12475)
This commit is contained in:
12
packages/app-mobile/utils/testing/testingLibrary.ts
Normal file
12
packages/app-mobile/utils/testing/testingLibrary.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import * as testingLibrary from '@testing-library/react-native';
|
||||
|
||||
// This file wraps @testing-library/react-native to allow configuring it
|
||||
// only if it's going to be used. Attempting to do this with a jest.mock
|
||||
// fails with "Cannot add a hook after tests have started running. Hooks must be defined synchronously."
|
||||
// Calling .configure for all tests causes jsdom-based tests to fail.
|
||||
testingLibrary.configure({
|
||||
// The default timeout of 1_000 ms is often too low in CI.
|
||||
asyncUtilTimeout: 5_000,
|
||||
});
|
||||
|
||||
export * from '@testing-library/react-native';
|
||||
Reference in New Issue
Block a user