Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
chore: Use unmock to get rid of mock hoisting (#563)
  • Loading branch information
jasonxia23 authored and okonet committed Jan 9, 2019
1 parent ac8cdf1 commit 73e04d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/gitStash.spec.js
@@ -1,5 +1,3 @@
jest.dontMock('execa') // Must be before all requires to work

const execa = require('execa')
const path = require('path')
const tmp = require('tmp')
Expand All @@ -8,6 +6,7 @@ const pify = require('pify')
const fsp = pify(require('fs'))

tmp.setGracefulCleanup()
jest.unmock('execa')

let wcDir
let wcDirPath
Expand Down

0 comments on commit 73e04d7

Please sign in to comment.