@grafana/faro-core
Version:
Core package of Faro.
33 lines • 858 B
JavaScript
export const mockMetas = {
add: jest.fn(),
remove: jest.fn(),
addListener: jest.fn(),
removeListener: jest.fn(),
value: {},
};
export const mockTransports = {
add: jest.fn(),
addBeforeSendHooks: jest.fn(),
execute: jest.fn(),
getBeforeSendHooks: jest.fn(),
remove: jest.fn(),
removeBeforeSendHooks: jest.fn(),
isPaused: function () {
throw new Error('Function not implemented.');
},
transports: [],
pause: function () {
throw new Error('Function not implemented.');
},
unpause: function () {
throw new Error('Function not implemented.');
},
};
export const mockTracesApi = {
getOTEL: jest.fn(),
getTraceContext: jest.fn(),
initOTEL: jest.fn(),
isOTELInitialized: jest.fn(),
pushTraces: jest.fn(),
};
//# sourceMappingURL=apiTestHelpers.js.map