fix tests

Signed-off-by: Tiger Kaovilai <passawit.kaovilai@gmail.com>
This commit is contained in:
Tiger Kaovilai
2025-04-14 04:57:53 -04:00
parent b3700ae685
commit 5fb3d75412
4 changed files with 325 additions and 4 deletions
+5 -3
View File
@@ -1,10 +1,12 @@
import 'cli-testing-library/extend-expect'
import { configure } from 'cli-testing-library'
// Using dynamic imports for ESM compatibility
import 'cli-testing-library/extend-expect';
import { configure } from 'cli-testing-library';
import { jest } from '@jest/globals';
// Make Jest available globally
global.jest = jest;
/**
* Adjusted the wait time for waitFor/findByText to 2000ms, because the default 1000ms makes the test results flaky
*/
configure({ asyncUtilTimeout: 2000 })
configure({ asyncUtilTimeout: 2000 });