Skip to content

Commit 816c36a

Browse files
chore(vue): trim stdout to have equal results in Mac vs Windows
1 parent b629102 commit 816c36a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

example-project/vue-app-broken/tests/type.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ describe('type check', () => {
2424
})
2525
});
2626

27-
const typeErrors = result.split('\n').filter((line) => line.startsWith('src/App.vue'))
27+
const typeErrors = result.split('\n')
28+
.map((line) => line.trim())
29+
.filter((line) => line.startsWith('src/App.vue'))
2830
expect(typeErrors).toMatchInlineSnapshot(`
2931
[
3032
"src/App.vue(7,5): error TS2322: Type 'string' is not assignable to type 'string[]'.",

0 commit comments

Comments
 (0)