coder/site/src/hooks
Michael Smith 63e06853eb
fix: update tests for useClipboard to minimize risks of flakes (#13250)
* wip: commit progress on test revamps

* fix: update existing tests to new format

* chore: add test case for global snackbar

* refactor: consolidate files

* refactor: make http dependency more explicit

* chore: add extra test case for exposed error value

* docs: fix typos

* fix: make sure clipboard is reset between test runs

* docs: add more context to comments

* refactor: update mock console.error logic to use jest.spyOn

* docs: add more clarifying comments

* refactor: split off type alias for clarity
2024-05-15 16:59:15 -04:00
..
debounce.test.ts chore(site): refactor tests for global hooks   (#12216) 2024-02-20 09:19:43 -05:00
debounce.ts fix: prevent workspace search bar text from getting garbled (#9703) 2023-09-15 15:55:59 -04:00
events.test.ts chore(site): refactor tests for global hooks   (#12216) 2024-02-20 09:19:43 -05:00
events.ts chore: sort imports in our typescript code (#12417) 2024-03-05 16:31:22 -07:00
hookPolyfills.test.ts chore(site): refactor tests for global hooks   (#12216) 2024-02-20 09:19:43 -05:00
hookPolyfills.ts feat: add usePaginatedQuery hook (#10803) 2023-11-30 17:44:03 -05:00
index.ts chore(site): update and refactor all custom hook tests that rely on React Router (#12219) 2024-03-08 18:31:01 -05:00
useClassName.ts chore: sort imports in our typescript code (#12417) 2024-03-05 16:31:22 -07:00
useClickable.test.tsx chore: sort imports in our typescript code (#12417) 2024-03-05 16:31:22 -07:00
useClickable.ts fix: add tests and improve accessibility for useClickable (#12218) 2024-02-21 10:59:13 -05:00
useClickableTableRow.ts chore: sort imports in our typescript code (#12417) 2024-03-05 16:31:22 -07:00
useClipboard.test.tsx fix: update tests for useClipboard to minimize risks of flakes (#13250) 2024-05-15 16:59:15 -04:00
useClipboard.ts fix: update tests for useClipboard to minimize risks of flakes (#13250) 2024-05-15 16:59:15 -04:00
useEmbeddedMetadata.test.ts fix: add more tests for metadata hook functionality (#13145) 2024-05-03 15:28:54 +00:00
useEmbeddedMetadata.ts fix: ensure signing out cannot cause any runtime render errors (#13137) 2024-05-03 10:40:06 -04:00
usePaginatedQuery.test.ts chore(site): upgrade msw to 2.0 (#12597) 2024-03-19 09:30:20 -03:00
usePaginatedQuery.ts chore: sort imports in our typescript code (#12417) 2024-03-05 16:31:22 -07:00
usePagination.ts chore: sort imports in our typescript code (#12417) 2024-03-05 16:31:22 -07:00
useSearchParamsKey.test.ts chore(site): update and refactor all custom hook tests that rely on React Router (#12219) 2024-03-08 18:31:01 -05:00
useSearchParamsKey.ts chore(site): update and refactor all custom hook tests that rely on React Router (#12219) 2024-03-08 18:31:01 -05:00
useTime.ts chore: reimplement activity status and autostop improvements (#12175) 2024-02-27 11:06:26 -07:00
useWorkspaceBuildLogs.ts chore: sort imports in our typescript code (#12417) 2024-03-05 16:31:22 -07:00