Skip to content

Commit

Permalink
test(Errors): remove stacktrace from snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ciniawsky committed Aug 8, 2018
1 parent 549ea08 commit 2c6033b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
6 changes: 3 additions & 3 deletions test/Errors.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ describe('Errors', () => {
error()
} catch (err) {
const message = err.message
.split('\n')
.slice(1)
.join('\n')
.split('\n\n')
.slice(1, -1)
.join('\n\n')

expect(message).toMatchSnapshot()
}
Expand Down
9 changes: 1 addition & 8 deletions test/__snapshots__/Errors.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,4 @@ exports[`Errors Syntax Error 1`] = `
"
`;
exports[`Errors Validation Error 1`] = `
"ValidationError: PostCSS Loader Invalid Options
options.sourceMap should be {String|Boolean} (https://github.com/postcss/postcss-loader#sourcemap)
at validateOptions (/Users/Cini/Github/webpack/loaders/postcss/node_modules/@webpack-utilities/schema/src/validateOptions.js:25:11)
at Object.loader (/Users/Cini/Github/webpack/loaders/postcss/src/index.js:44:3)"
`;
exports[`Errors Validation Error 1`] = `"options.sourceMap should be {String|Boolean} (https://github.com/postcss/postcss-loader#sourcemap)"`;

0 comments on commit 2c6033b

Please sign in to comment.