Skip to content

Commit

Permalink
test: use rewire to test exhort services
Browse files Browse the repository at this point in the history
Signed-off-by: Ilona Shishov <[email protected]>
  • Loading branch information
IlonaShishov committed Feb 19, 2024
1 parent d07f029 commit 026354d
Show file tree
Hide file tree
Showing 6 changed files with 200 additions and 98 deletions.
185 changes: 96 additions & 89 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"@vscode/test-electron": "^2.3.5",
"babel-plugin-rewire": "^1.2.0",
"chai": "^4.3.10",
"decache": "^4.6.2",
"eslint": "^8.51.0",
Expand All @@ -278,11 +279,11 @@
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@fabric8-analytics/fabric8-analytics-lsp-server": "^0.9.1-ea.0",
"@fabric8-analytics/fabric8-analytics-lsp-server": "^0.9.3",
"@redhat-developer/vscode-redhat-telemetry": "^0.7.0",
"@RHEcosystemAppEng/exhort-javascript-api": "^0.1.1-ea.14",
"fs": "^0.0.1-security",
"path": "^0.12.7",
"vscode-languageclient": "^8.1.0"
}
}
}
2 changes: 1 addition & 1 deletion src/exhortServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async function tokenValidationService(options, source) {
vscode.window.showWarningMessage(`Failed to validate token. Status: ${tokenValidationStatus}`);
}
} catch (error) {
vscode.window.showErrorMessage(`Failed to validate token, Error: ${error}`);
vscode.window.showErrorMessage(`Failed to validate token, Error: ${error.message}`);
}
}

Expand Down
Loading

0 comments on commit 026354d

Please sign in to comment.