Skip to content

Instantly share code, notes, and snippets.

@jaonoctus
Created January 14, 2019 15:02
Show Gist options
  • Save jaonoctus/170784b5c843e68bb7ee10a9a4ef6534 to your computer and use it in GitHub Desktop.
Save jaonoctus/170784b5c843e68bb7ee10a9a4ef6534 to your computer and use it in GitHub Desktop.
module.exports = {
collection: jest.fn().mockReturnThis(),
where: jest.fn().mockReturnThis(),
limit: jest.fn().mockReturnThis(),
doc: jest.fn().mockReturnThis(),
get: jest.fn().mockResolvedValue({
empty: true,
docs: []
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment