stable
Clone or download
No functional changes. Notes ===== Testing library --------------- AppFlamingParrot.test.ts uses @testing-library/vue instead of @vue/test-utils because I didn't manage to have stubs working in shallowMount. @testing-library/vue is build on top of @vue/test-utils and is [the recommended mounting library][0]. Vue version ----------- vue is pinned to 3.2.37 because there is a conflict somewhere with upper version (3.2.38 and 3.2.39) while typechecking initiate-app.ts: > ``` > Type 'CompatConfig' is not assignable to type 'CompatConfig'. Two different types with this name exist, but they are unrelated. > > 69 app.use(gettext); > ~~~~~~~ > ``` Replacing `$` by `jQuery` ------------------------- Variables beginning with `$` has [special meaning in Vue][1], so we now use the explicite `jQuery()` instead of shortcut `$()`. --- Part of story #26771: Index artifact fields (REST + Switch to) on updated artifacts only [0]: https://vuejs.org/guide/scaling-up/testing.html#mounting-libraries [1]: https://github.com/vuejs/rfcs/discussions/369 Change-Id: I30ca413c744ef65b3946ce88f224f77e4ed40e92
Modified Files
Name | ||||
---|---|---|---|---|
M | pnpm-workspace.yaml | +1 | −0 | Go to diff View file |
M | src/common/Layout/Layout.class.php | +0 | −1 | Go to diff View file |
M | src/jest.config.js | +1 | −1 | Go to diff View file |
M | src/package.json | +3 | −10 | Go to diff View file |
M | src/pnpm-lock.yaml | +3 | −87 | Go to diff View file |
R | src/scripts/switch-to/src/helpers/local-vue-for-test.ts | Go to diff View file | ||
A | src/scripts/switch-to/package.json | +43 | −0 | Go to diff View file |
A | src/scripts/switch-to/pnpm-lock.yaml | +730 | −0 | Go to diff View file |
M | src/scripts/switch-to/src/components/AppBurningParrot.test.ts | +3 | −6 | Go to diff View file |
M | src/scripts/switch-to/src/components/AppBurningParrot.vue | +2 | −2 | Go to diff View file |
M | src/scripts/switch-to/src/components/AppFlamingParrot.test.ts | +22 | −22 | Go to diff View file |
M | src/scripts/switch-to/src/components/AppFlamingParrot.vue | +7 | −5 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/GlobalEmptyState.test.ts | +3 | −3 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/GlobalEmptyState.vue | +2 | −5 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/GlobalEmptyStateSvg.vue | +1 | −1 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/GlobalLoadingState.vue | +1 | −1 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/HighlightMatchingText.vue | +3 | −0 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Items/ItemEntry.test.ts | +14 | −19 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Items/ItemEntry.vue | +5 | −4 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Items/RecentItems/ListOfRecentItems.test.ts | +14 | −20 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Items/RecentItems/RecentItemsEmptyStateSvg.vue | +1 | −1 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Items/RecentItems/RecentItemsLoadingState.vue | +1 | −1 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Items/SearchResults/SearchQueryTooSmall.vue | +1 | −1 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Items/SearchResults/SearchResults.test.ts | +64 | −66 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Items/SearchResults/SearchResultsList.vue | +7 | −6 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Items/__snapshots__/ItemEntry.test.ts.snap | +23 | −48 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Projects/ListOfProjects.test.ts | +8 | −11 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Projects/ProjectLink.test.ts | +33 | −30 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Projects/ProjectLink.vue | +1 | −3 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Projects/ProjectsEmptyState.test.ts | +3 | −3 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Projects/ProjectsEmptyState.vue | +2 | −5 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Projects/ProjectsEmptyStateSvg.vue | +1 | −1 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Projects/__snapshots__/ProjectLink.test.ts.snap | +6 | −11 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Projects/__snapshots__/ProjectsEmptyState.test.ts.snap | +2 | −14 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/QuickLink.test.ts | +3 | −5 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/SwitchToBody.test.ts | +51 | −47 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/TroveCatLink.test.ts | +19 | −17 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/__snapshots__/GlobalEmptyState.test.ts.snap | +2 | −14 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/__snapshots__/TroveCatLink.test.ts.snap | +5 | −2 | Go to diff View file |
M | src/scripts/switch-to/src/components/Header/SwitchToFilter.test.ts | +24 | −23 | Go to diff View file |
M | src/scripts/switch-to/src/components/Header/SwitchToFilter.vue | +4 | −4 | Go to diff View file |
M | src/scripts/switch-to/src/components/Header/SwitchToHeader.test.ts | +38 | −35 | Go to diff View file |
A | src/scripts/switch-to/src/helpers/global-options-for-test.ts | +35 | −0 | Go to diff View file |
R | src/scripts/switch-to/index-bp.ts | Go to diff View file | ||
R | src/scripts/switch-to/index-fp.ts | Go to diff View file | ||
M | src/scripts/switch-to/src/initiate-app.ts | +15 | −18 | Go to diff View file |
A | src/scripts/switch-to/tsconfig.json | +13 | −0 | Go to diff View file |
A | src/scripts/switch-to/vite.config.ts | +47 | −0 | Go to diff View file |
M | src/themes/BurningParrot/include/BurningParrotTheme.php | +10 | −1 | Go to diff View file |
M | src/webpack.common.js | +0 | −2 | Go to diff View file |
M | src/www/themes/FlamingParrot/FlamingParrot_Theme.class.php | +10 | −0 | Go to diff View file |