@grafana/faro-core
Version:
Core package of Faro.
40 lines • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.mockUserActionsApi = exports.mockTracesApi = exports.mockTransports = exports.mockMetas = void 0;
exports.mockMetas = {
add: jest.fn(),
remove: jest.fn(),
addListener: jest.fn(),
removeListener: jest.fn(),
value: {},
};
exports.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.');
},
};
exports.mockTracesApi = {
getOTEL: jest.fn(),
getTraceContext: jest.fn(),
initOTEL: jest.fn(),
isOTELInitialized: jest.fn(),
pushTraces: jest.fn(),
};
exports.mockUserActionsApi = {
startUserAction: jest.fn(),
getActiveUserAction: jest.fn(),
};
//# sourceMappingURL=apiTestHelpers.js.map