Charis Kyriakou
1c705da444
Add 'rename' context menu action for dbs/lists ( #1928 )
2023-01-05 13:29:10 +00:00
Shati Patel
4dba169412
Support new DB config format in "copy repo list" function ( #1927 )
2023-01-05 10:56:55 +00:00
Charis Kyriakou
db9bc5bf5c
Add db and list rename functionality to db config store
2023-01-04 15:59:14 +00:00
Charis Kyriakou
3227935078
Minor refactoring of the db config store and tests ( #1924 )
...
* Remove unnecessary type castings
* Extract validation to separate functions
* Nest tests inside a 'describe' block
2023-01-04 13:11:26 +00:00
Shati Patel
0902e187c8
Add context menu command to open repo/owner on GitHub ( #1921 )
2023-01-04 10:44:48 +00:00
Charis Kyriakou
7738041ee7
Nest tests inside a 'describe' block
2023-01-04 09:07:42 +00:00
Charis Kyriakou
f3d0773085
Rename calculateNewExpandedState -> updateItemInExpandedState
2023-01-04 09:06:31 +00:00
Charis Kyriakou
1a08ae4df2
Move db item expansion models to db-item-expansion
2023-01-04 09:05:12 +00:00
Charis Kyriakou
8e848e3403
Set db tree item context value to drive actions ( #1920 )
2023-01-03 16:17:51 +00:00
Charis Kyriakou
bbbbb3a1ee
Renamed selectable context value ( #1917 )
2023-01-03 12:34:24 +00:00
Charis Kyriakou
35d1d8ba6e
Move VS Code integration tests to /test directory ( #1912 )
2023-01-03 10:31:38 +00:00
Charis Kyriakou
a7be6cf31a
Fix broken unit test that relies on date ( #1914 )
2023-01-03 09:26:13 +00:00
Charis Kyriakou
40a7dd04fb
Tidy up unit test suite file structure ( #1910 )
2022-12-23 14:23:55 +00:00
Charis Kyriakou
3234f0afe1
Move db item expanded state to workspace storage ( #1904 )
2022-12-22 15:44:00 +00:00
Charis Kyriakou
19a9ad38d5
Add workspace state to app container ( #1902 )
2022-12-21 17:58:34 +00:00
Nora
467d43c68c
Implement refactor merge comments
2022-12-20 12:58:50 +00:00
Nora
7241e317af
Move helper to new file and minor refactor
2022-12-20 10:19:42 +00:00
Nora
2b1a2cddb1
Merge pull request #1880 from github/nora/move-db-config-factories
...
Move DbConfig Factories to src directory
2022-12-16 10:05:01 +01:00
Nora
0c2e15a176
Use factory in db tree creator
2022-12-15 14:56:26 +00:00
Nora
8665a81ec1
Move factory to src
2022-12-15 14:52:51 +00:00
Shati Patel
fecefe4468
Add unit tests to check codeQLDatabasesExperimental.configError value ( #1876 )
2022-12-15 13:07:17 +00:00
Charis Kyriakou
468c4a2539
Add logger to the app container ( #1874 )
2022-12-15 11:28:38 +00:00
Charis Kyriakou
602289eb6d
Add validation for duplicate names in the db config ( #1867 )
2022-12-14 12:51:46 +00:00
Charis Kyriakou
e521112f3e
Add db config factory function and use it in tests ( #1859 )
2022-12-13 08:36:37 +00:00
Charis Kyriakou
1a0d88135d
Add executeCommand to app container ( #1857 )
2022-12-09 17:12:25 +00:00
Nora
35f582b731
Implement merge comments
2022-12-09 12:53:40 +00:00
Nora
33ef89a28c
Use new factories
2022-12-09 10:16:49 +01:00
Nora
a9b2aec353
Create missing factories and test adjustment
2022-12-09 10:16:49 +01:00
Charis Kyriakou
d97eb2e76b
Track expanded state of db items ( #1844 )
2022-12-07 12:39:18 +00:00
Nora
c436688eb2
Merge pull request #1830 from github/nora/selected-db-item
...
Create method that returns selected DbItem
2022-12-06 09:33:21 +01:00
Nora
425befa959
Add tests
2022-12-05 17:38:40 +01:00
Nora
1050968db1
Update extensions/ql-vscode/test/pure-tests/databases/db-item-selection.test.ts
...
Co-authored-by: Charis Kyriakou <charisk@users.noreply.github.com >
2022-12-05 16:57:30 +01:00
Nora
60b1f141a1
Rename and reduce test lines
2022-12-05 16:20:49 +01:00
Charis Kyriakou
2967777db1
Track parent list name for db items ( #1833 )
2022-12-05 10:48:33 +00:00
Nora
9110af80d8
Add test
2022-12-05 10:08:04 +01:00
Koen Vlaswinkel
402b33830d
Add tests for excluded snippets
2022-12-02 16:32:29 +01:00
Charis Kyriakou
6d1b5ab1e1
Update the format of selected state and propagate it to the treeview ( #1817 )
2022-12-01 16:27:21 +00:00
Elena Tanasoiu
56660b1720
Enable eslint-plugin-github in test folder
2022-12-01 09:10:46 +00:00
Elena Tanasoiu
670c863f3f
Autofix import/no-namespace
...
I'm leaving the rule turned off as it still has 100+ offenses that aren't
autofixable.
2022-12-01 09:10:44 +00:00
Charis Kyriakou
74e047cbd8
Move logging code to /common/logging and split into multiple files ( #1800 )
2022-11-30 09:45:29 +00:00
Koen Vlaswinkel
80b2a43be9
Move filter and sort tests to pure tests
...
The filter and sort tests were located inside the React tests since they
were already using Jest. Now that the pure tests have been switched to
Jest, these tests can finally be moved to the "normal" pure tests.
2022-11-23 14:06:57 +01:00
Koen Vlaswinkel
f5c39d7931
Improve error message for empty array
...
When `jest-codemods` was run, it replaced the error message `array.join`
by a comment for the error message. Since Jest does not support custom
error messages out-of-the-box, this will instead do an equality check
with an empty array, which will ensure that the received array is
printed.
2022-11-22 15:54:22 +01:00
Koen Vlaswinkel
ec60f3f000
Dispose config store in tests
...
The config store was not being disposed in tests, resulting in Chokidar
watchers being left open. This was causing tests to not exit since there
were still open file descriptors.
This commit also fixes the `DbConfigStore` to make the correct `super`
call in its `dispose` method.
2022-11-22 11:53:21 +01:00
Koen Vlaswinkel
0974700557
Convert pure tests to Jest
...
This converts all pure tests to Jest. This was done by first running
`npx jest-codemods` with the Mocha transformation, then manually fixing
any places where it hadn't automatically converted the correct thing
or had missed things (mostly Sinon).
This also sets up VSCode correctly for running Jest.
2022-11-22 10:39:21 +01:00
Koen Vlaswinkel
55534e19d6
Add project-based Jest config
...
This moves the view Jest config to the view directory and adds a new
jest.config.js file which only references the view directory as a
project. This will make it easier to add multiple Jest configs for
separate projects.
2022-11-21 16:41:47 +01:00
Koen Vlaswinkel
ebcdf8ad0b
Run Prettier on all files
...
This will change all existing files to match Prettier formatting.
The command used is `npm run format`.
2022-11-16 19:06:13 +01:00
Shati Patel
b2a3703d3a
Render nodes for local database items ( #1759 )
2022-11-16 11:03:49 +00:00
Nora
bd6c3add1b
Move files to config folder
2022-11-16 10:22:54 +01:00
Nora
a012d80341
Merge comments
2022-11-15 15:48:28 +01:00
Nora
cf7e33363a
Resolve conflicts
2022-11-15 14:19:51 +01:00