Skip to content

Commit

Permalink
feat: upgrade prettier to 1.7.0 (#125)
Browse files Browse the repository at this point in the history
* fix(test): fix JSON parse errors in tests

* feat: upgrade prettier to 1.7.0
  • Loading branch information
ppvg authored and Kent C. Dodds committed Sep 14, 2017
1 parent b1c4ba4 commit 92dc149
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -21,7 +21,7 @@
"indent-string": "^3.2.0",
"lodash.merge": "^4.6.0",
"loglevel-colored-level-prefix": "^1.0.0",
"prettier": "^1.6.0",
"prettier": "^1.7.0",
"pretty-format": "^20.0.3",
"require-relative": "^0.8.7",
"typescript": "^2.4.2",
Expand Down
6 changes: 5 additions & 1 deletion src/__mocks__/fs.js
@@ -1,4 +1,8 @@
const fs = require.requireActual('fs')
module.exports = Object.assign({}, fs, {
readFileSync: jest.fn(() => 'var fake = true'),
readFileSync: jest.fn(filename => {
return /package\.json$/.test(filename) ?
'{"name": "fake", "version": "0.0.0"}' :
'var fake = true'
}),
})

0 comments on commit 92dc149

Please sign in to comment.