[tests] removed noisy warnings

This commit is contained in:
Camille Moussu
2025-07-30 15:23:00 +02:00
committed by Benoit TELLIER
parent d7b3d4e077
commit eac718cfdc
2 changed files with 26 additions and 8 deletions
+13
View File
@@ -15,3 +15,16 @@ jest.mock("openid-client", () => ({
authorizationCodeGrant: jest.fn(),
fetchUserInfo: jest.fn(),
}));
const originalWarn = console.warn;
beforeAll(() => {
console.warn = (...args: unknown[]) => {
if (
typeof args[0] === "string" &&
args[0].includes("React Router Future Flag Warning")
) {
return;
}
originalWarn(...args);
};
});