Skip to content

Commit 2c6033b

Browse files
committedAug 8, 2018
test(Errors): remove stacktrace from snapshot
1 parent 549ea08 commit 2c6033b

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed
 

‎test/Errors.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ describe('Errors', () => {
2323
error()
2424
} catch (err) {
2525
const message = err.message
26-
.split('\n')
27-
.slice(1)
28-
.join('\n')
26+
.split('\n\n')
27+
.slice(1, -1)
28+
.join('\n\n')
2929

3030
expect(message).toMatchSnapshot()
3131
}

‎test/__snapshots__/Errors.test.js.snap

+1-8
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,4 @@ exports[`Errors Syntax Error 1`] = `
1111
"
1212
`;
1313
14-
exports[`Errors Validation Error 1`] = `
15-
"ValidationError: PostCSS Loader Invalid Options
16-
17-
options.sourceMap should be {String|Boolean} (https://github.com/postcss/postcss-loader#sourcemap)
18-
19-
at validateOptions (/Users/Cini/Github/webpack/loaders/postcss/node_modules/@webpack-utilities/schema/src/validateOptions.js:25:11)
20-
at Object.loader (/Users/Cini/Github/webpack/loaders/postcss/src/index.js:44:3)"
21-
`;
14+
exports[`Errors Validation Error 1`] = `"options.sourceMap should be {String|Boolean} (https://github.com/postcss/postcss-loader#sourcemap)"`;

0 commit comments

Comments
 (0)
Please sign in to comment.