Created
September 16, 2019 21:22
-
-
Save oosby/564cc01eff72bf30230cd5f75aac3cfa to your computer and use it in GitHub Desktop.
This file contains 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 { SOME_VALUE } from '../constants'; | |
jest.mock('../constants', () => ({ SOME_VALUE: 'abc123test' })); |
Perfect!
awesome
thanks
what if the value of the constant needs to change across different tests? Is that possible?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I love you <3
Simple, but that's what I was looking for