Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
znck committed Oct 4, 2022
1 parent 5724298 commit a5de7a9
Show file tree
Hide file tree
Showing 11 changed files with 237 additions and 161 deletions.
165 changes: 99 additions & 66 deletions packages/compiler-tsx/test/__snapshots__/baseline.js

Large diffs are not rendered by default.

165 changes: 99 additions & 66 deletions packages/compiler-tsx/test/__snapshots__/baseline.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

exports[`Vue to TSX compiler if-else-if.vue: if-else-if.vue 1`] = `
"import * as __VueDX__TypeCheck from 'vuedx~runtime';
import { defineComponent as __VueDX__defineComponent, GlobalComponents as __VueDX__GlobalComponents } from 'vue';
declare const __VueDX__defineComponent: typeof import("vue").defineComponent;
type __VueDX__GlobalComponents = import("vue").GlobalComponents;
//#region <script>
const __VueDX___Script_Component = __VueDX__defineComponent({});
Expand Down Expand Up @@ -97,7 +98,8 @@ export default class IfElseIf extends IfElseIfPublic {
exports[`Vue to TSX compiler nested-for-slot.vue: nested-for-slot.vue 1`] = `
"import * as __VueDX__TypeCheck from 'vuedx~runtime';
import { defineComponent as __VueDX__defineComponent, GlobalComponents as __VueDX__GlobalComponents } from 'vue';
declare const __VueDX__defineComponent: typeof import("vue").defineComponent;
type __VueDX__GlobalComponents = import("vue").GlobalComponents;
//#region <script>
const __VueDX___Script_Component = __VueDX__defineComponent({});
Expand Down Expand Up @@ -219,7 +221,8 @@ export default class NestedForSlot extends NestedForSlotPublic {
exports[`Vue to TSX compiler ts-script-template.vue: ts-script-template.vue 1`] = `
"import * as __VueDX__TypeCheck from 'vuedx~runtime';
import { defineComponent as __VueDX__defineComponent, GlobalComponents as __VueDX__GlobalComponents } from 'vue';
declare const __VueDX__defineComponent: typeof import("vue").defineComponent;
type __VueDX__GlobalComponents = import("vue").GlobalComponents;
//#region <script>
import { defineComponent } from 'vue'
Expand Down
3 changes: 2 additions & 1 deletion packages/compiler-tsx/test/fixtures/if-else-if.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as __VueDX__TypeCheck from 'vuedx~runtime';
import { defineComponent as __VueDX__defineComponent, GlobalComponents as __VueDX__GlobalComponents } from 'vue';
declare const __VueDX__defineComponent: typeof import("vue").defineComponent;
type __VueDX__GlobalComponents = import("vue").GlobalComponents;
//#region <script>

const __VueDX___Script_Component = __VueDX__defineComponent({});
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler-tsx/test/fixtures/if-else-if.tsx.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/compiler-tsx/test/fixtures/nested-for-slot.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as __VueDX__TypeCheck from 'vuedx~runtime';
import { defineComponent as __VueDX__defineComponent, GlobalComponents as __VueDX__GlobalComponents } from 'vue';
declare const __VueDX__defineComponent: typeof import("vue").defineComponent;
type __VueDX__GlobalComponents = import("vue").GlobalComponents;
//#region <script>

const __VueDX___Script_Component = __VueDX__defineComponent({});
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/compiler-tsx/test/fixtures/ts-script-template.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as __VueDX__TypeCheck from 'vuedx~runtime';
import { defineComponent as __VueDX__defineComponent, GlobalComponents as __VueDX__GlobalComponents } from 'vue';
declare const __VueDX__defineComponent: typeof import("vue").defineComponent;
type __VueDX__GlobalComponents = import("vue").GlobalComponents;
//#region <script>

import { defineComponent } from 'vue'
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

exports[`sourcemaps attrs types 1`] = `
import * as __VueDX_TypeCheck from 'vuedx~runtime';
import { defineComponent as __VueDX_defineComponent, GlobalComponents as __VueDX_GlobalComponents } from 'vue';
declare const __VueDX_defineComponent: typeof import("vue").defineComponent;
type __VueDX_GlobalComponents = import("vue").GlobalComponents;
//#region <script>
const __VueDX__Script_Component = __VueDX_defineComponent({});
Expand Down Expand Up @@ -91,7 +92,8 @@ export default class Example extends ExamplePublic {
exports[`sourcemaps component 1`] = `
import * as __VueDX_TypeCheck from 'vuedx~runtime';
import { defineComponent as __VueDX_defineComponent, GlobalComponents as __VueDX_GlobalComponents } from 'vue';
declare const __VueDX_defineComponent: typeof import("vue").defineComponent;
type __VueDX_GlobalComponents = import("vue").GlobalComponents;
//#region <script>
const __VueDX__Script_Component = __VueDX_defineComponent({});
Expand Down Expand Up @@ -188,7 +190,7 @@ exports[`sourcemaps directives 1`] = `
a=""
onA={__VueDX_TypeCheck.internal.first([
onNum,
^^^^^ > 5 at 1516 (37:10)
^^^^^ > 5 at 1545 (38:10)
])}
onB={__VueDX_TypeCheck.internal.first([
`;
Expand All @@ -204,7 +206,7 @@ exports[`sourcemaps directives 2`] = `
a=""
onA={__VueDX_TypeCheck.internal.first([
onNum,
^^^^^ > 5 at 1516 (37:10)
^^^^^ > 5 at 1545 (38:10)
])}
onB={__VueDX_TypeCheck.internal.first([
`;
Expand All @@ -220,7 +222,7 @@ exports[`sourcemaps directives 3`] = `
a=""
onA={__VueDX_TypeCheck.internal.first([
onNum,
^^ > 2 at 1519 (37:13)
^^ > 2 at 1548 (38:13)
])}
onB={__VueDX_TypeCheck.internal.first([
`;
Expand All @@ -236,7 +238,7 @@ exports[`sourcemaps directives 4`] = `
a=""
onA={__VueDX_TypeCheck.internal.first([
onNum,
^^ > 2 at 1519 (37:13)
^^ > 2 at 1548 (38:13)
])}
onB={__VueDX_TypeCheck.internal.first([
`;
Expand All @@ -252,7 +254,7 @@ exports[`sourcemaps directives 5`] = `
a=""
onA={__VueDX_TypeCheck.internal.first([
onNum,
^^^^^ > 5 at 1516 (37:10)
^^^^^ > 5 at 1545 (38:10)
])}
onB={__VueDX_TypeCheck.internal.first([
`;
Expand All @@ -268,7 +270,7 @@ exports[`sourcemaps directives 6`] = `
a=""
onA={__VueDX_TypeCheck.internal.first([
onNum,
^^^^^ > 5 at 1516 (37:10)
^^^^^ > 5 at 1545 (38:10)
])}
onB={__VueDX_TypeCheck.internal.first([
`;
Expand All @@ -284,7 +286,7 @@ exports[`sourcemaps directives 7`] = `
a=""
onA={__VueDX_TypeCheck.internal.first([
onNum,
^^ > 2 at 1519 (37:13)
^^ > 2 at 1548 (38:13)
])}
onB={__VueDX_TypeCheck.internal.first([
`;
Expand All @@ -300,7 +302,7 @@ exports[`sourcemaps directives 8`] = `
a=""
onA={__VueDX_TypeCheck.internal.first([
onNum,
^^ > 2 at 1519 (37:13)
^^ > 2 at 1548 (38:13)
])}
onB={__VueDX_TypeCheck.internal.first([
`;
Expand All @@ -316,7 +318,7 @@ exports[`sourcemaps directives 9`] = `
onC={__VueDX_TypeCheck.internal.first([
($event) => {
call.a['func']($event)
^^^^^^^^ > 8 at 1702 (44:16)
^^^^^^^^ > 8 at 1731 (45:16)
},
])}
`;
Expand All @@ -332,7 +334,7 @@ exports[`sourcemaps directives 10`] = `
onC={__VueDX_TypeCheck.internal.first([
($event) => {
call.a['func']($event)
^^^^^^^^ > 8 at 1702 (44:16)
^^^^^^^^ > 8 at 1731 (45:16)
},
])}
`;
Expand All @@ -348,7 +350,7 @@ exports[`sourcemaps directives 11`] = `
onC={__VueDX_TypeCheck.internal.first([
($event) => {
call.a['func']($event)
^^^^^^ > 6 at 1711 (44:25)
^^^^^^ > 6 at 1740 (45:25)
},
])}
`;
Expand All @@ -364,14 +366,15 @@ exports[`sourcemaps directives 12`] = `
onC={__VueDX_TypeCheck.internal.first([
($event) => {
call.a['func']($event)
^^^^^^ > 6 at 1711 (44:25)
^^^^^^ > 6 at 1740 (45:25)
},
])}
`;
exports[`sourcemaps v-if on template + v-slot 1`] = `
import * as __VueDX_TypeCheck from 'vuedx~runtime';
import { defineComponent as __VueDX_defineComponent, GlobalComponents as __VueDX_GlobalComponents } from 'vue';
declare const __VueDX_defineComponent: typeof import("vue").defineComponent;
type __VueDX_GlobalComponents = import("vue").GlobalComponents;
//#region <script>
const __VueDX__Script_Component = __VueDX_defineComponent({});
Expand Down Expand Up @@ -462,7 +465,7 @@ exports[`sourcemaps v-on shorthand 1`] = `
<B
a=""
onA={__VueDX_TypeCheck.internal.first([
^ > 1 at 1436 (35:8)
^ > 1 at 1465 (36:8)
onStr,
])}
`;
Expand All @@ -478,7 +481,7 @@ exports[`sourcemaps v-on shorthand 2`] = `
<B
a=""
onA={__VueDX_TypeCheck.internal.first([
^ > 1 at 1436 (35:8)
^ > 1 at 1465 (36:8)
onStr,
])}
`;
Expand All @@ -494,7 +497,7 @@ exports[`sourcemaps v-text 1`] = `
<>
<div
innerHTML={a}
^ > 1 at 1057 (28:19)
^ > 1 at 1086 (29:19)
/*<vuedx:tsx-completions-target/>*/
/>
`;
Expand All @@ -510,7 +513,7 @@ exports[`sourcemaps v-text 2`] = `
<>
<div
innerHTML={a}
^ > 1 at 1057 (28:19)
^ > 1 at 1086 (29:19)
/*<vuedx:tsx-completions-target/>*/
/>
`;
3 changes: 2 additions & 1 deletion packages/vue-virtual-textdocument/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ describe('VueSFCDocument', () => {

expect(doc.getText()).toMatchInlineSnapshot(`
"import * as __VueDX_TypeCheck from 'vuedx~runtime';
import { defineComponent as __VueDX_defineComponent, GlobalComponents as __VueDX_GlobalComponents } from 'vue';
declare const __VueDX_defineComponent: typeof import("vue").defineComponent;
type __VueDX_GlobalComponents = import("vue").GlobalComponents;
//#region <script>
const __VueDX__Script_Component = __VueDX_defineComponent({});
Expand Down

0 comments on commit a5de7a9

Please sign in to comment.