Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: snapshot with fully-resolved path name
  • Loading branch information
cameronhunter authored and okonet committed Jul 6, 2019
1 parent 06269dd commit b1a08b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/__snapshots__/index.spec.js.snap
Expand Up @@ -58,7 +58,7 @@ ERROR Please make sure you have created it correctly.
See https://github.com/okonet/lint-staged#configuration."
`;
exports[`lintStaged should print helpful error message when explicit config file is not found 2`] = `
exports[`lintStaged should print helpful error message when explicit config file is not found 1`] = `
ERROR Could not parse lint-staged config.
Expand Down
4 changes: 1 addition & 3 deletions test/index.spec.js
Expand Up @@ -118,9 +118,7 @@ describe('lintStaged', () => {

await expect(
lintStaged({ configPath: nonExistentConfig, quiet: true }, logger)
).rejects.toMatchInlineSnapshot(
`[Error: ENOENT: no such file or directory, open '/Users/chunter/workspace/github/cameronhunter/lint-staged/fake-config-file.yml']`
)
).rejects.toThrowError()

expect(logger.printHistory()).toMatchSnapshot()
})
Expand Down

0 comments on commit b1a08b8

Please sign in to comment.