Added e2e tests for filewatcher
Some checks failed
Docker Image CI / build (push) Has been cancelled

This commit is contained in:
Rishi Ghan
2026-04-15 12:35:25 -04:00
parent c4cf233053
commit 664da47ea2
5 changed files with 1087 additions and 1 deletions

24
tests/setup.ts Normal file
View File

@@ -0,0 +1,24 @@
/**
* Jest global setup for file watcher e2e tests
* @jest-environment node
*/
import { jest, beforeAll, afterAll } from "@jest/globals";
// Increase Jest timeout for e2e tests that involve file system operations
jest.setTimeout(30000);
// Suppress console logs during tests unless DEBUG is set
if (!process.env.DEBUG) {
const originalConsole = { ...console };
beforeAll(() => {
console.log = jest.fn() as typeof console.log;
console.info = jest.fn() as typeof console.info;
// Keep error and warn for debugging
});
afterAll(() => {
console.log = originalConsole.log;
console.info = originalConsole.info;
});
}
export {};