Skip to content

Instantly share code, notes, and snippets.

@symm symm/now.js
Last active Jul 3, 2018

What would you like to do?
JS date mock
export default () => new Date()
jest.mock('src/utils/now', () => () => new Date('2016-01-01'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.