Skip to content

Commit 23dc390

Browse files
committed
test: when testing the error message format, the message may be in the first data stream
1 parent c0794c7 commit 23dc390

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/@vue/cli-plugin-eslint/__tests__/eslintPlugin.spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ test(`should use formatter 'stylish'`, async () => {
257257
if (isFirstMsg) {
258258
expect(data).toMatch(/Failed to compile with \d error/)
259259
isFirstMsg = false
260-
} else if (data.match(/semi/)) {
260+
}
261+
262+
if (data.match(/semi/)) {
261263
// check the format of output
262264
// https://eslint.org/docs/user-guide/formatters/#stylish
263265
// it looks like:

0 commit comments

Comments
 (0)