import { sha256 } from 'js-sha256' ; import type { FullStoryDeps , FullStoryApi , FullStoryService } from './fullstory' ; export const fullStoryApiMock = { event : jest . fn ( ) , setUserVars : jest . fn ( ) , identify : jest . fn ( ) , } ; export const initializeFullStoryMock = jest . fn < FullStoryService , [ FullStoryDeps ] > ( ( ) => ( { fullStory : fullStoryApiMock , sha256 , } ) ) ; jest . doMock ( './fullstory' , ( ) => { return { initializeFullStory : initializeFullStoryMock } ; } ) ;