Skip to content

Commit 0f9e82c

Browse files
kyliauKeen Yee Liau
authored andcommitted
test: refactor integration test for LSP
It is not always straight-forward to write unit tests for the code in this repo because of the nature of the language server. However, since the language server uses JSON-RPC, it makes sense to test the server along this boundary through stateful integration test. This PR makes writing integration tests a lot easier by refactoring the test client. As a result, we can now 1. Use strongly typed requests and responses. 2. Have much better abstraction of the test client. 3. Easily write more tests! This refactoring is done in preparation for the upcoming ngcc feature.
1 parent b81e8f3 commit 0f9e82c

File tree

6 files changed

+215
-642
lines changed

6 files changed

+215
-642
lines changed

integration/lsp/jasmine.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"spec_dir": "integration/out/lsp",
3+
"spec_files": [
4+
"*_spec.js"
5+
]
6+
}

0 commit comments

Comments
 (0)