Skip to content

Commit ff5f5d1

Browse files
committed
Add vue-ts-plugin-based test.
Based on the same test style as the ng-ts-plugin-based tests.
1 parent df6c1cc commit ff5f5d1

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/// <reference path="../fourslash.ts"/>
2+
3+
// @Filename: tsconfig.json
4+
//// {
5+
//// "compilerOptions": {
6+
//// "allowNonTsExtensions": true,
7+
//// "plugins": [
8+
//// { "name": "mock-vue" }
9+
//// ]
10+
//// },
11+
//// "files": ["a.vue"]
12+
//// }
13+
14+
// Note: This test does *not* implement the correct vue transformation.
15+
// So it's other.data.property, not other.property or other.$data.property
16+
// @Filename: other.vue
17+
////<template>
18+
////</template>
19+
////<script>
20+
////export default {
21+
//// data: { property: "Example" }
22+
////}
23+
////</script>
24+
////<style>
25+
////</style>
26+
27+
28+
// @Filename: a.vue
29+
////<template>
30+
////</template>
31+
////<script>
32+
////import other from './other.vue'
33+
//// other.data.property/**/
34+
////export default {
35+
//// data: { greeting: "Hello" }
36+
////}
37+
////</script>
38+
////<style>
39+
////</style>
40+
41+
// LS shouldn't crash/fail if a plugin fails to init correctly
42+
goTo.marker();
43+
verify.quickInfoIs('(property) property: string');
44+
verify.numberOfErrorsInCurrentFile(0);

0 commit comments

Comments
 (0)