Skip to content

Commit

Permalink
chore: fix precommit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Apr 7, 2018
1 parent 5623699 commit 441aa5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripts/__tests__/precommit.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ cases(
process.exit = jest.fn()

process.argv = ['node', '../precommit', ...args]
utils.isOptedIn = optIn => optIn === 'pre-commit'
crossSpawnSyncMock.mockClear()

try {
Expand Down

0 comments on commit 441aa5b

Please sign in to comment.