From 6306d340ef455d52131346fb1fcd0b13e207ecf8 Mon Sep 17 00:00:00 2001 From: Aseer KT Date: Fri, 26 Apr 2024 11:01:43 +0530 Subject: [PATCH 1/4] feat: vue extractor error reporting --- .../src/__snapshots__/extractor.test.ts.snap | 13 +++++++ packages/extractor-vue/src/extractor.test.ts | 36 ++++++++++++++++++- packages/extractor-vue/src/vue-extractor.ts | 14 ++++++-- 3 files changed, 60 insertions(+), 3 deletions(-) diff --git a/packages/extractor-vue/src/__snapshots__/extractor.test.ts.snap b/packages/extractor-vue/src/__snapshots__/extractor.test.ts.snap index 646453824..afaf4e040 100644 --- a/packages/extractor-vue/src/__snapshots__/extractor.test.ts.snap +++ b/packages/extractor-vue/src/__snapshots__/extractor.test.ts.snap @@ -1,5 +1,18 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`vue extractor should catch template errors 1`] = ` +[ + [SyntaxError: Error parsing JavaScript expression: Unexpected token (1:3)], + [SyntaxError: v-model can only be used on ,