You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-06 23:56:13 +02:00
Chore: Reduce mobile note screen test flakiness (#11145)
This commit is contained in:
@ -1125,7 +1125,8 @@ export const runWithFakeTimers = async (callback: ()=> Promise<void>) => {
|
||||
throw new Error('Fake timers are only supported in jest.');
|
||||
}
|
||||
|
||||
jest.useFakeTimers();
|
||||
// advanceTimers: Needed by Joplin's database driver
|
||||
jest.useFakeTimers({ advanceTimers: true });
|
||||
|
||||
// The shim.setTimeout and similar functions need to be changed to
|
||||
// use fake timers.
|
||||
|
Reference in New Issue
Block a user