Archived
1
0
Commit Graph

390 Commits

Author SHA1 Message Date
8c14799797 refactor: add custom mock for serviceWorker test 2021-02-26 16:05:35 -07:00
6b56e6572d feat(testing): add serviceWorker tests 2021-02-26 16:00:18 -07:00
46226ea26b chore(testing): add service-worker-mock 2021-02-26 11:58:29 -07:00
80a180079e feat: add test for catching errors in Emitter 2021-02-26 11:58:29 -07:00
b232dcbd4a feat(register): add test when navigator undefined 2021-02-26 11:58:28 -07:00
e6a324b484 refactor: update mocking logger in register test 2021-02-26 11:58:28 -07:00
cb4185b360 refactor: use loggerModule in util 2021-02-26 11:58:28 -07:00
1c737f1f93 refactor: hoist jest.mock in constants 2021-02-26 11:55:17 -07:00
1470ff203a refactor: dont use actual logger in helper 2021-02-26 11:55:17 -07:00
711abd8d84 refactor: move loggerModule into helpers 2021-02-26 11:55:00 -07:00
027e8e5adf refactor: use LogModule from Asher in tests 2021-02-26 11:51:52 -07:00
a44a51462c refactor: use same syntax as logger spy 2021-02-26 11:51:52 -07:00
7ef630f7a4 refactor(register): use logError instead of logger 2021-02-26 11:51:52 -07:00
38891de0d9 feat(test): add test handleRegisterServiceWorker 2021-02-26 11:51:52 -07:00
44b9874fbe feat: test failure to register service worker 2021-02-26 11:51:52 -07:00
06aeca0a83 feat(testing): add register test 2021-02-26 11:51:51 -07:00
28b440a4ba feat: add cssStub to jest 2021-02-26 11:51:51 -07:00
4f1f2c7171 fix: clean up comment in util.test.ts 2021-02-26 11:50:27 -07:00
7dbb72a9c1 Merge pull request #2648 from cdr/e2e-test-go-home
feat(testing): add e2e test for 'Go Home' button
2021-02-25 11:21:43 -07:00
325a1d8181 feat: add test for catching errors in Emitter 2021-02-22 13:44:43 -07:00
e0acb08d94 feat: add basic test for emitter 2021-02-22 13:44:43 -07:00
47a05c998a Gate wtfnode behind WTF_NODE env var
After thinking about it some more it's probably mostly only useful to
see the output when the tests are hanging. Otherwise there's a lot of
noise about Jest child processes and pipes.
2021-02-22 13:41:12 -07:00
6685b3a4ff Move wtfnode setup to global setup
I think Jest provides separate console methods for each test so when the
socket tests finish Jest complains that a test keeps trying to output.
2021-02-22 13:41:11 -07:00
ef7e7271b6 Fix unreadable wtfnode output 2021-02-22 13:41:11 -07:00
6d4f814f84 Close context before browser
This seems to resolve a warning about a process being forcefully exited.
2021-02-22 13:41:11 -07:00
d61bbc4c4f refactor(goHome): check url, remove timeout 2021-02-22 13:41:11 -07:00
b0fd55463b refactor: add constants.ts with PASSWORD, etc 2021-02-22 13:41:11 -07:00
5857b25079 chore: add todo regarding storage and cookies e2e 2021-02-22 13:41:10 -07:00
3fa460c244 refactor: create helpers.ts & add Cookie 2021-02-22 13:41:10 -07:00
38d7718feb refactor: use promises for goHome test 2021-02-22 13:41:10 -07:00
06af8b3202 refactor: update goHome location in test 2021-02-22 13:41:10 -07:00
d0eece3d8f refactor: add note to test.sh about --home 2021-02-22 13:41:10 -07:00
2dc56ad4d7 refactor: manually add cookie goHome 2021-02-22 13:41:10 -07:00
b02d2fb3cc feat: add cookie utils for e2e tests 2021-02-22 13:41:10 -07:00
ffdbf3a730 feat: add test/videos & /screenshots to gitignore 2021-02-22 13:41:09 -07:00
236717ee98 fix: update modulePathIgnorePatterns for jest 2021-02-22 13:41:09 -07:00
34c6ec4c07 feat: add globalSetup for testing 2021-02-22 13:41:09 -07:00
3033c8f9a2 feat: add test to visit go home in app menu 2021-02-22 13:41:08 -07:00
c2f1a2dace feat: add test for login page 2021-02-22 13:41:08 -07:00
2d8b785fb8 Fix health socket not getting client messages
Forgot to resume. Went ahead and did the same for the test plugin
although it only sends messages and doesn't receive any.
2021-02-16 15:01:46 -06:00
7f80d152d3 Add healthz tests 2021-02-16 15:01:45 -06:00
59ba78c028 Force shutdown sockets during tests 2021-02-16 15:01:45 -06:00
de11753569 Fill req.args for tests 2021-02-12 16:05:15 -06:00
8344e2062a Merge pull request #2622 from cdr/plugin-additions 2021-02-10 16:45:00 -06:00
de9491d5a6 Mark code-server as a virtual module 2021-02-10 13:13:23 -06:00
4f16087a94 Resolve code-server from the root
This fixes the lint script but unfortunately breaks my editor.
2021-02-09 16:36:26 -06:00
e098df0766 Fix code-server module not being provided in Jest 2021-02-09 15:23:08 -06:00
c7c851dd01 feat: add tests for src/common/http 2021-02-09 13:13:19 -07:00
9647d65e52 Add code-server alias to eslint 2021-02-09 13:33:31 -06:00
c78f56b334 Expose HttpError to plugins
This will let them throw and show nice errors more easily.
2021-02-09 13:09:38 -06:00