diff --git a/packages/consent/consent-wrapper-onetrust/src/test-helpers/utils.ts b/packages/consent/consent-wrapper-onetrust/src/test-helpers/utils.ts index 538d79fc1..c448d5a3c 100644 --- a/packages/consent/consent-wrapper-onetrust/src/test-helpers/utils.ts +++ b/packages/consent/consent-wrapper-onetrust/src/test-helpers/utils.ts @@ -1,3 +1,6 @@ +/** + * Allows mocked objects to throw a helpful error message when a method is called without an implementation + */ export const addDebugMockImplementation = (mock: jest.Mocked) => { Object.entries(mock).forEach(([method, value]) => { // automatically add mock implementation for debugging purposes