code-server-2/test/unit/node
Asher 4b4ec37880
Fix relative paths (#4594)
* Add tests for relativeRoot

* Remove path.posix.join

Since this is for file system paths it feels incorrect to use it on
URL paths as they are different in many ways.

* Rewrite cookie path logic

Before we relied on the client to resolve the base given to it by the
backend against the path.

Instead have the client pass that information along so we can resolve it
on the backend.  This means the client has to do less work.

* Do not remove out directory before watch

This is re-used for incremental compilation.

Also remove del since that was the only use (and we can use fs.rmdir in
the future if we need something like this).

* Remove unused function resolveBase
2021-12-08 15:52:15 -06:00
..
__snapshots__ feat: add tests for src/node/app.ts 2021-09-20 10:57:31 -07:00
routes Escape HTML from messages in error page (#4430) 2021-11-09 14:39:54 -07:00
test-plugin chore: replace eslint-import-resolver-alias with eslint-import-resolver-typescript (#4546) 2021-12-07 14:39:01 -07:00
app.test.ts Use upstream server (#4414) 2021-11-09 23:28:31 -06:00
cli.test.ts Use upstream server (#4414) 2021-11-09 23:28:31 -06:00
constants.test.ts refactor: match /test/unit structure to /src 2021-07-29 09:48:40 -07:00
http.test.ts Fix relative paths (#4594) 2021-12-08 15:52:15 -06:00
plugin.test.ts Use upstream server (#4414) 2021-11-09 23:28:31 -06:00
proxy.test.ts chore: replace eslint-import-resolver-alias with eslint-import-resolver-typescript (#4546) 2021-12-07 14:39:01 -07:00
proxy_agent.test.ts refactor: use Teffen's solution for useEnv 2021-07-26 11:21:30 -07:00
socket.test.ts refactor: match /test/unit structure to /src 2021-07-29 09:48:40 -07:00
update.test.ts refactor: match /test/unit structure to /src 2021-07-29 09:48:40 -07:00
util.test.ts feat: add test for onLine throw error (#4542) 2021-11-22 20:18:58 +00:00