Created
February 20, 2020 00:15
-
-
Save Farenheith/ecee754961306fa41ef00dfd33176083 to your computer and use it in GitHub Desktop.
Example to mock an exported function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { otherFunction } from './other-function'; | |
export function myFunction() { | |
return otherFunction(123); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment