Skip to content

Commit

Permalink
Merge pull request #2071 from vuejs/simplify-lsp-fixture
Browse files Browse the repository at this point in the history
Simplify lsp fixture
  • Loading branch information
octref authored Jul 30, 2020
2 parents 88e5be2 + 6ad112b commit 058dde7
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 1,044 deletions.
14 changes: 7 additions & 7 deletions test/lsp/features/diagnostics/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,38 @@ describe('Should find common diagnostics for all regions', () => {
{
range: sameLineRange(25, 4, 5),
severity: vscode.DiagnosticSeverity.Error,
message: "',' expected."
message: "',' expected"
},
{
range: sameLineRange(7, 9, 12),
severity: vscode.DiagnosticSeverity.Error,
message: "Argument of type '\"5\"' is not assignable to parameter of type 'number'."
message: "Argument of type '\"5\"' is not assignable to parameter of type 'number'"
},
{
range: sameLineRange(8, 0, 29),
severity: vscode.DiagnosticSeverity.Error,
message: "'Item' is declared but its value is never read.",
message: "'Item' is declared but its value is never read",
tags: [DiagnosticTag.Unnecessary]
},
{
range: sameLineRange(8, 17, 29),
severity: vscode.DiagnosticSeverity.Error,
message: "Cannot find module './Void.vue'."
message: "Cannot find module './Void.vue'"
},
{
range: sameLineRange(11, 16, 19),
severity: vscode.DiagnosticSeverity.Error,
message: "No value exists in scope for the shorthand property 'Ite'."
message: "Cannot find name 'Ite'. Did you mean 'Item'"
},
{
range: range(17, 2, 21, 3),
severity: vscode.DiagnosticSeverity.Error,
message: 'No overload matches this call.'
message: 'No overload matches this call'
},
{
range: sameLineRange(24, 14, 16),
severity: vscode.DiagnosticSeverity.Error,
message: "Property 'lo' does not exist on type 'Console'."
message: "Property 'lo' does not exist on type 'Console'"
}
];

Expand Down
46 changes: 3 additions & 43 deletions test/lsp/fixture/package.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,4 @@
{
"name": "veturpack",
"version": "0.1.0",
"description": "Vuepack adapted for Vetur.",
"main": "client/index.js",
"scripts": {
"build": "webpack --config build/webpack.prod.js",
"dev": "node build/server.js",
"lint": "xo **/client/**/*.{vue,js} !node_modules/**"
},
"author": "Pine Wu <octref@gmail.com>",
"license": "MIT",
"xo": {
"extends": "./.eslintrc",
"esnext": true,
"envs": [
"browser"
]
},
"babel": {
"presets": [
[
"vue-app",
{
"useBuiltIns": true
}
]
]
},
"postcss": {
"plugins": {
"autoprefixer": {},
"postcss-nested": {}
}
},
"browserslist": [
"last 2 versions",
"ie > 8"
],
"dependencies": {
"buefy": "^0.8.16",
"element-ui": "^2.4.5",
Expand All @@ -50,12 +12,10 @@
"devDependencies": {
"@prettier/plugin-pug": "^1.4.4",
"@types/lodash": "^4.14.77",
"eslint": "^6.8.0",
"eslint-plugin-vue": "^6.2.1",
"eslint": "^7.5.0",
"eslint-plugin-vue": "^6.2.2",
"prettier": "^2.0.5",
"prettier-eslint-cli": "^5.0.0",
"typescript": "^3.8.3",
"vue-template-compiler": "^2.6.11"
"typescript": "^3.9.7"
},
"vetur": {
"tags": "./tags.json"
Expand Down
Loading

0 comments on commit 058dde7

Please sign in to comment.