[tests] removed noisy warnings
This commit is contained in:
committed by
Benoit TELLIER
parent
d7b3d4e077
commit
eac718cfdc
@@ -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);
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user