1
0
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:
Henry Heino
2025-06-11 14:42:06 -07:00
committed by GitHub
parent 3b7a677302
commit b81f5cb91e
21 changed files with 32 additions and 18 deletions

View 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';