Commit Graph
206 Commits
Author SHA1 Message Date
Dannon Baker 80740c6cb3 Apply new version of prettier 2025-08-25 20:34:03 -04:00
John Chilton 654bc00628 Fail jest tests on error/warn logging. 2025-08-13 13:57:06 -04:00
John Chilton 50b2910444 Mock unprivilged tool request in ActivityBar.test.js. 2025-08-13 13:52:02 -04:00
John Chilton 7962a52364 Suppress Vue 2 deprecations for lucide icons. 2025-08-08 13:00:43 -04:00
John Chilton 22e8bb7ec6 Mock out history store interactions in Citations to prevent API calls. 2025-08-08 13:00:43 -04:00
mvdbeek f50e215599 Transform yaml for jest tests 2025-05-12 10:54:46 +02:00
John Chilton 8e3e86a706 Option for add_column_regex to be unmatched, improved testing.
Can easily be combined concatenate and such to get conditionals on rewriting values. Used for new tests in new collection types branch that mirror I think useful, real-world examples. Also extends the test framework a bit to allow testing errors during evaluation and not just errors that can be caught statically by inspecting the rule itself.
2025-05-09 16:38:18 -04:00
Laila Los 119e9e7e08 fix dialog in jsdom 2025-05-09 10:20:53 -05:00
davelopez 2e2adf1953 Add "ro-crate-zip-explorer" to modules to transform in Jest config 2025-05-08 23:59:51 +02:00
Laila Los 401d558b2a remove tags used from client 2025-04-16 13:07:05 +02:00
John Chilton 519367572b Suppress errors for custom icons when using them in WorkflowComment.test.ts. 2025-03-05 10:43:35 -05:00
Alireza Heidari c13d82a6a0 Fixes syntax format error in mockedDirective bind method 2025-02-27 12:56:21 +01:00
Alireza Heidari e403c416aa Updates mocks directive bind method
Enhances mocked directive bind method to set data attributes
2025-02-27 12:56:16 +01:00
John Chilton 4b3ee52b44 Merge branch 'release_24.2' into merge_24.2_into_dev 2024-12-03 12:39:48 -05:00
Ahmed Awan c2ab795265 fix PairedListCollectionCreator jest 2024-12-02 16:08:24 -06:00
John Chilton 856c909cc9 Another pass at reducing logging around Galaxy configs. 2024-11-22 12:17:34 -05:00
John ChiltonandDannon 82a4498a29 Update client/tests/jest/jest.setup.js
Co-authored-by: Dannon <dannon.baker@gmail.com>
2024-11-21 11:15:35 -05:00
John Chilton 9f91db10cb Fixes warnings in StatelessTags.test.vue. 2024-11-21 07:57:44 -05:00
John Chilton f24648f05e Fix extra test logging and establish abstractions for config mocking. 2024-11-20 16:02:29 -05:00
John Chilton c567829e88 Cleanup extra printings of Vue production and devtools message.
See comments inline for how to test this works and my best shot at the explaining the problem.
2024-11-20 16:02:28 -05:00
John Chilton 752063b201 Eliminate a extraneous logging event in HistoryView.test.js. 2024-11-20 16:02:28 -05:00
John Chilton 8bfe85d383 stub help popovers in formdata to eliminate extra logging 2024-11-20 16:02:28 -05:00
John Chilton 66b821ade6 Suppress known console.debug in Index.test.ts. 2024-11-20 16:02:28 -05:00
davelopez 2237070e3e Replace jest-environment-jsdom with jest-fixed-jsdom
And remove custom polyfills and whatwg-fetch.
Hopefully this would be a more stable testing environment.
2024-08-13 13:23:47 +02:00
Dannon Baker a2685e1df8 Drop performance polyfill, no longer necessary 2024-08-13 13:23:43 +02:00
davelopez 64cddf5d04 Use fake-indexeddb in tests
Fixes:
Error in watcher callback (Promise/async): "MissingAPIError: IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"
2024-08-13 13:23:42 +02:00
davelopez 290bab3195 Fix jest fetch polyfill by using whatwg-fetch 2024-08-13 13:23:41 +02:00
Dannon Baker 81e5282988 Add performance, readableStream to jsdom 2024-08-13 13:23:41 +02:00
Dannon Baker b3d9fe2b58 Annotate globalThis in jest polyfills 2024-08-13 13:23:40 +02:00
davelopez 11b2bca270 Add jest polyfill for clearImmediate
To avoid the following error:
ReferenceError: clearImmediate is not defined
2024-08-13 13:23:30 +02:00
davelopez 0ea851250c Refactor client API and mock server usage
- Fix import side effects
2024-08-13 13:23:20 +02:00
davelopez 5e3e4d6642 Refactor client API mocks and imports 2024-08-13 13:23:19 +02:00
davelopez 877f3e008d Add Mock Service Worker to mock client API responses
All the jest configuration is from:
https://mswjs.io/docs/migrations/1.x-to-2.x#frequent-issues
2024-08-13 13:23:18 +02:00
davelopez bdc51d3d65 Remove openapi-typescript-fetch dependency 2024-08-13 13:23:17 +02:00
Marius van den Beek 4f20fbffbd Merge pull request #18645 from davelopez/improve_user_types
Improve types around User in schema and client
2024-08-06 12:42:20 +02:00
Dannon Baker 679af5fb77 Minor refactoring to future proof against ts preset changes 2024-08-05 15:18:28 -04:00
Dannon Baker 705603820b Slightly cleaner tsj preset setting, extending the default transform. 2024-08-05 15:18:28 -04:00
Dannon Baker e10ad3ca75 Enable verbatimModuleSyntax for ts, override jest 2024-08-05 15:18:28 -04:00
davelopez 83c7d0e808 Use correct user types in client tests 2024-08-05 16:22:49 +02:00
John Chilton d3991a696b Object Store creation templates. 2024-05-20 12:16:02 -04:00
Laila Los 980005f808 add mock IntersectionObserver 2024-02-26 16:39:19 +01:00
Dannon 64a851c421 Merge pull request #17469 from ElectronicBlueberry/tag-autocomplete-rework
Tag Autocomplete Rework
2024-02-15 14:16:53 -05:00
Laila Los d0d0a3c3e1 fix test mocks 2024-02-14 13:43:04 +01:00
Alireza Heidari 09cf6bb3c6 ✔️: import short directive in jest helpers 2024-02-06 18:15:28 +01:00
davelopez 2da59d8782 Remove central Vuex store 2024-01-24 11:56:21 +01:00
Dannon Baker d59c55420e Drop all eventHub usage. 2023-11-15 22:08:23 -05:00
Dannon Baker 32b8101774 Work around types in test code -- if we really want to do this, we should have a formal interface extension 2023-10-22 13:26:22 -04:00
Dannon Baker dc95410051 Jest helper import org. 2023-10-22 13:26:22 -04:00
Dannon Baker d026af5d46 Adjust jest imports, explicit jest-globals side effect import 2023-10-22 13:26:22 -04:00
Dannon Baker d5635d3aa6 Remove snakecase dep, use lodash instead to trim down lib 2023-10-22 13:26:22 -04:00