code-server/test
Anmol Sethi 197a09f0c1
plugin: Test endpoints via supertest
Unfortunately we can't use node-mocks-http to test a express.Router
that has async routes. See https://github.com/howardabrams/node-mocks-http/issues/225

router will just return undefined if the executing handler is async and
so the test will have no way to wait for it to complete. Thus, we have
to use supertest which starts an actual HTTP server in the background
and uses a HTTP client to send requests.
2020-11-06 10:13:01 -05:00
..
test-plugin plugin: Test endpoints via supertest 2020-11-06 10:13:01 -05:00
cli.test.ts Move argument defaults into setDefaults 2020-10-20 16:15:13 -05:00
plugin.test.ts plugin: Test endpoints via supertest 2020-11-06 10:13:01 -05:00
socket.test.ts Enforce import order 2020-08-13 17:11:35 -05:00
tsconfig.json Make updating work for both binary and loose releases 2020-02-20 18:48:16 -06:00
update.test.ts Convert routes to Express 2020-10-26 17:56:13 -05:00
util.test.ts Remove unused deep merge code 2020-08-13 17:11:34 -05:00