Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Jeremy-Z 2026-05-26 12:17:42 -04:00 committed by GitHub
parent 06371e0043
commit 06ff83716e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,11 +10,15 @@ import { useMainStore } from '@/store';
import settleAllPromises from '@/helpers/layout-helper.js';
import { fetchCmsContentForPage } from '@/helpers/cms-content-helper';
import * as clientAuthHelper from '@/helpers/clientauth-helper';
import Logger from "@/helpers/logger";
import crypto from 'crypto';
// Instantiate global logging object
global.$logger = new Logger();
// Stub global logging object to avoid real network calls in tests
global.$logger = {
logError: jest.fn(),
logInfo: jest.fn(),
logWarn: jest.fn(),
logDebug: jest.fn()
};
global.crypto = crypto;