首页 > 解决方案 > mocking a function in jest to test in typescript

问题描述

// file to be mocked.ts
export function Details(): void {name=x;email=y}

I want to mock this function in my test file so that I can change the name and email in mocked function in typescript

标签: reactjsjestjsenzymereact-testing-library

解决方案


推荐阅读