From b5db17b1341d9798ccc8e491b093228b53564719 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Tue, 20 Dec 2022 16:25:47 +0100 Subject: [NO JIRA] Upgrade jest --- .../__snapshots__/BackgroundTasksApp-test.tsx.snap | 62 +- .../__snapshots__/TaskActions-test.tsx.snap | 4 +- .../__snapshots__/TaskComponent-test.tsx.snap | 16 +- .../__snapshots__/WorkersForm-test.tsx.snap | 48 +- .../__tests__/__snapshots__/utils-test.tsx.snap | 14 +- .../__tests__/__snapshots__/CodeApp-test.tsx.snap | 252 +-- .../__snapshots__/ComponentName-test.tsx.snap | 10 +- .../__snapshots__/Components-test.tsx.snap | 54 +- .../__tests__/__snapshots__/Search-test.tsx.snap | 12 +- .../ActivationFormModal-test.tsx.snap | 26 +- .../__tests__/__snapshots__/App-test.tsx.snap | 140 +- .../CustomRuleFormModal-test.tsx.snap | 52 +- .../__snapshots__/FacetsList-test.tsx.snap | 6 +- .../__snapshots__/RuleDetails-test.tsx.snap | 70 +- .../__snapshots__/RuleDetailsIssues-test.tsx.snap | 6 +- .../__snapshots__/RuleDetailsMeta-test.tsx.snap | 24 +- .../RuleDetailsParameters-test.tsx.snap | 4 +- .../RuleDetailsTagsPopup-test.tsx.snap | 4 +- .../__snapshots__/RuleListItem-test.tsx.snap | 32 +- .../__tests__/__snapshots__/TagFacet-test.tsx.snap | 4 +- .../__tests__/__snapshots__/utils-test.ts.snap | 46 +- .../__tests__/__snapshots__/App-test.tsx.snap | 36 +- .../__snapshots__/Breadcrumbs-test.tsx.snap | 10 +- .../__snapshots__/MeasureContent-test.tsx.snap | 196 +- .../__snapshots__/MeasureHeader-test.tsx.snap | 20 +- .../__snapshots__/MeasureOverview-test.tsx.snap | 84 +- .../__snapshots__/MeasureViewSelect-test.tsx.snap | 28 +- .../__snapshots__/BubbleChart-test.tsx.snap | 126 +- .../__snapshots__/ComponentCell-test.tsx.snap | 14 +- .../__snapshots__/ComponentList-test.tsx.snap | 28 +- .../__snapshots__/FilesView-test.tsx.snap | 32 +- .../__snapshots__/DomainFacet-test.tsx.snap | 40 +- .../__tests__/__snapshots__/Sidebar-test.tsx.snap | 26 +- .../__tests__/__snapshots__/App-test.tsx.snap | 6 +- .../__snapshots__/EditMembers-test.tsx.snap | 2 +- .../__snapshots__/EditMembersModal-test.tsx.snap | 4 +- .../__tests__/__snapshots__/List-test.tsx.snap | 6 +- .../__tests__/__snapshots__/ListItem-test.tsx.snap | 2 +- .../__snapshots__/AssigneeSelect-test.tsx.snap | 20 +- .../__snapshots__/BulkChangeModal-test.tsx.snap | 10 +- .../__snapshots__/IssuesList-test.tsx.snap | 42 +- .../__snapshots__/IssuesSourceViewer-test.tsx.snap | 318 +-- .../__tests__/__snapshots__/ListItem-test.tsx.snap | 42 +- .../__snapshots__/PageActions-test.tsx.snap | 2 +- .../__snapshots__/TotalEffort-test.tsx.snap | 2 +- .../__snapshots__/ConciseIssue-test.tsx.snap | 12 +- .../__snapshots__/ConciseIssueBox-test.tsx.snap | 70 +- .../ConciseIssueLocations-test.tsx.snap | 2 +- .../__snapshots__/ConciseIssuesList-test.tsx.snap | 6 +- ...ComponentSourceSnippetGroupViewer-test.tsx.snap | 6 +- .../CrossComponentSourceViewer-test.tsx.snap | 208 +- .../IssueSourceViewerHeader-test.tsx.snap | 6 +- .../__snapshots__/SnippetViewer-test.tsx.snap | 256 +-- .../__snapshots__/AssigneeFacet-test.tsx.snap | 6 +- .../__snapshots__/AuthorFacet-test.tsx.snap | 6 +- .../__snapshots__/CreationDateFacet-test.tsx.snap | 32 +- .../__snapshots__/DirectoryFacet-test.tsx.snap | 4 +- .../__snapshots__/FileFacet-test.tsx.snap | 4 +- .../__snapshots__/ProjectFacet-test.tsx.snap | 4 +- .../__snapshots__/RuleFacet-test.tsx.snap | 6 +- .../__snapshots__/ScopeFacet-test.tsx.snap | 8 +- .../__tests__/__snapshots__/Sidebar-test.tsx.snap | 14 +- .../__snapshots__/StandardFacet-test.tsx.snap | 20 +- .../__snapshots__/StatusFacet-test.tsx.snap | 2 +- .../__snapshots__/TypeFacet-test.tsx.snap | 2 +- .../__tests__/__snapshots__/App-test.tsx.snap | 34 +- .../__snapshots__/EditionBoxes-test.tsx.snap | 12 +- .../MarketplaceAppContainer-test.tsx.snap | 28 +- .../__snapshots__/PluginUpdates-test.tsx.snap | 24 +- .../__snapshots__/PluginsList-test.tsx.snap | 60 +- .../__snapshots__/PluginActions-test.tsx.snap | 8 +- .../__snapshots__/PluginAvailable-test.tsx.snap | 174 +- .../__snapshots__/PluginChangeLog-test.tsx.snap | 38 +- .../__snapshots__/PluginLicense-test.tsx.snap | 2 +- .../__snapshots__/PluginOrganization-test.tsx.snap | 2 +- .../__tests__/MeasuresPanelNoNewCode-test.tsx | 6 +- .../__snapshots__/ActivityPanel-test.tsx.snap | 86 +- .../__tests__/__snapshots__/Analysis-test.tsx.snap | 8 +- .../__snapshots__/BranchOverview-test.tsx.snap | 1074 +++++----- .../BranchOverviewRenderer-test.tsx.snap | 162 +- .../__snapshots__/DebtValue-test.tsx.snap | 4 +- .../DrilldownMeasureValue-test.tsx.snap | 2 +- .../__tests__/__snapshots__/Event-test.tsx.snap | 2 +- .../FirstAnalysisNextStepsNotif-test.tsx.snap | 18 +- .../__snapshots__/LeakPeriodInfo-test.tsx.snap | 4 +- .../__snapshots__/MeasuresPanel-test.tsx.snap | 2108 ++++++++++---------- .../MeasuresPanelIssueMeasureRow-test.tsx.snap | 586 +++--- .../MeasuresPanelNoNewCode-test.tsx.snap | 22 +- .../__snapshots__/QualityGatePanel-test.tsx.snap | 202 +- .../QualityGatePanelSection-test.tsx.snap | 120 +- .../__snapshots__/EmptyOverview-test.tsx.snap | 48 +- .../__snapshots__/IssueLabel-test.tsx.snap | 16 +- .../__snapshots__/IssueRating-test.tsx.snap | 12 +- .../__snapshots__/MeasurementLabel-test.tsx.snap | 30 +- .../QualityGateCondition-test.tsx.snap | 18 +- .../__snapshots__/SonarLintPromition-test.tsx.snap | 2 +- .../LargeQualityGateBadge-test.tsx.snap | 8 +- .../PullRequestOverview-test.tsx.snap | 960 ++++----- .../__tests__/__snapshots__/App-test.tsx.snap | 26 +- .../__tests__/__snapshots__/ListItem-test.tsx.snap | 14 +- .../__tests__/__snapshots__/NameCell-test.tsx.snap | 8 +- .../__tests__/__snapshots__/Template-test.tsx.snap | 36 +- .../__snapshots__/AllHoldersList-test.tsx.snap | 164 +- .../__tests__/__snapshots__/App-test.tsx.snap | 32 +- .../__tests__/__snapshots__/App-test.tsx.snap | 80 +- .../__snapshots__/ApplyTemplate-test.tsx.snap | 6 +- .../__snapshots__/GroupHolder-test.tsx.snap | 24 +- .../__snapshots__/HoldersList-test.tsx.snap | 106 +- .../__snapshots__/UserHolder-test.tsx.snap | 46 +- .../__tests__/__snapshots__/actions-test.ts.snap | 40 +- .../__tests__/__snapshots__/utils-test.ts.snap | 162 +- .../ProjectActivityAnalysesList-test.tsx.snap | 68 +- .../ProjectActivityDateInput-test.tsx.snap | 2 +- .../ProjectActivityGraphs-test.tsx.snap | 104 +- .../ProjectActivityPageFilters-test.tsx.snap | 12 +- .../__tests__/__snapshots__/App-test.tsx.snap | 34 +- .../__snapshots__/AppHeader-test.tsx.snap | 6 +- .../BaselineSettingReferenceBranch-test.tsx.snap | 36 +- .../BranchAnalysisListRenderer-test.tsx.snap | 56 +- .../BranchBaselineSettingModal-test.tsx.snap | 10 +- .../__snapshots__/BranchList-test.tsx.snap | 20 +- .../__snapshots__/BranchListRow-test.tsx.snap | 20 +- .../ProjectBaselineSelector-test.tsx.snap | 4 +- .../__snapshots__/BranchLikeRow-test.tsx.snap | 76 +- .../__snapshots__/BranchLikeTable-test.tsx.snap | 266 +-- .../__snapshots__/BranchLikeTabs-test.tsx.snap | 86 +- .../LifetimeInformationRenderer-test.tsx.snap | 6 +- .../__snapshots__/ProjectBranchesApp-test.tsx.snap | 32 +- .../__snapshots__/ProjectDumpApp-test.tsx.snap | 14 +- .../__tests__/__snapshots__/Import-test.tsx.snap | 2 +- .../__tests__/__snapshots__/Key-test.tsx.snap | 12 +- .../__tests__/__snapshots__/App-test.tsx.snap | 20 +- .../__tests__/__snapshots__/Table-test.tsx.snap | 8 +- .../ProjectQualityGateApp-test.tsx.snap | 30 +- .../ProjectQualityGateAppRenderer-test.tsx.snap | 74 +- .../ProjectQualityProfilesApp-test.tsx.snap | 20 +- ...ProjectQualityProfilesAppRenderer-test.tsx.snap | 52 +- .../__snapshots__/AddLanguageModal-test.tsx.snap | 12 +- .../LanguageProfileSelectOption-test.tsx.snap | 6 +- .../SetQualityProfileModal-test.tsx.snap | 36 +- .../__snapshots__/AllProjects-test.tsx.snap | 36 +- .../__snapshots__/PageHeader-test.tsx.snap | 8 +- .../__snapshots__/PerspectiveSelect-test.tsx.snap | 20 +- .../ProjectCreationMenu-test.tsx.snap | 2 +- .../ProjectCreationMenuItem-test.tsx.snap | 4 +- .../__snapshots__/ProjectsList-test.tsx.snap | 10 +- .../ProjectsSortingSelect-test.tsx.snap | 74 +- .../__snapshots__/ProjectCard-test.tsx.snap | 34 +- .../__snapshots__/CoverageFilter-test.tsx.snap | 2 +- .../__snapshots__/DuplicationsFilter-test.tsx.snap | 2 +- .../__tests__/__snapshots__/Filter-test.tsx.snap | 6 +- .../__snapshots__/IssuesFilter-test.tsx.snap | 2 +- .../__snapshots__/LanguagesFilter-test.tsx.snap | 50 +- .../__snapshots__/NewLinesFilter-test.tsx.snap | 2 +- .../__snapshots__/QualifierFilter-test.tsx.snap | 2 +- .../__snapshots__/QualityGateFilter-test.tsx.snap | 2 +- .../SearchableFilterFooter-test.tsx.snap | 8 +- .../SecurityReviewFilter-test.tsx.snap | 2 +- .../__snapshots__/SizeFilter-test.tsx.snap | 2 +- .../__snapshots__/TagsFilter-test.tsx.snap | 72 +- .../BulkApplyTemplateModal-test.tsx.snap | 32 +- .../__snapshots__/ProjectRow-test.tsx.snap | 18 +- .../__snapshots__/ProjectRowActions-test.tsx.snap | 12 +- .../__tests__/__snapshots__/Projects-test.tsx.snap | 8 +- .../__tests__/__snapshots__/Search-test.tsx.snap | 40 +- .../__tests__/__snapshots__/utils-test.ts.snap | 44 +- .../__snapshots__/ChangelogContainer-test.tsx.snap | 18 +- .../__snapshots__/ChangelogSearch-test.tsx.snap | 2 +- .../__snapshots__/ProfileActions-test.tsx.snap | 28 +- .../__snapshots__/QualityProfilesApp-test.tsx.snap | 10 +- .../__snapshots__/ChangeParentForm-test.tsx.snap | 16 +- .../__snapshots__/ChangeProjectsForm-test.tsx.snap | 4 +- .../__snapshots__/ProfileDetails-test.tsx.snap | 72 +- .../__snapshots__/ProfileInheritance-test.tsx.snap | 14 +- .../ProfileInheritanceBox-test.tsx.snap | 8 +- .../__snapshots__/ProfilePermissions-test.tsx.snap | 8 +- .../ProfilePermissionsForm-test.tsx.snap | 8 +- .../ProfilePermissionsFormSelect-test.tsx.snap | 6 +- .../ProfilePermissionsGroup-test.tsx.snap | 2 +- .../__snapshots__/ProfileProjects-test.tsx.snap | 6 +- .../__snapshots__/ProfileRules-test.tsx.snap | 2 +- .../ProfileRulesDeprecatedWarning-test.tsx.snap | 2 +- .../ProfileRulesRowOfType-test.tsx.snap | 8 +- .../ProfileRulesRowTotal-test.tsx.snap | 8 +- .../ProfileRulesSonarWayComparison-test.tsx.snap | 2 +- .../__snapshots__/Evolution-test.tsx.snap | 4 +- .../EvolutionDeprecated-test.tsx.snap | 8 +- .../__snapshots__/PageHeader-test.tsx.snap | 14 +- .../__snapshots__/ProfilesListHeader-test.tsx.snap | 8 +- .../SecurityHotspotsApp-test.tsx.snap | 38 +- .../SecurityHotspotsAppRenderer-test.tsx.snap | 194 +- .../__snapshots__/FilterBar-test.tsx.snap | 104 +- .../__snapshots__/HotspotCategory-test.tsx.snap | 12 +- .../__snapshots__/HotspotHeader-test.tsx.snap | 70 +- .../__snapshots__/HotspotList-test.tsx.snap | 52 +- .../__snapshots__/HotspotListItem-test.tsx.snap | 2 +- .../HotspotOpenInIdeButton-test.tsx.snap | 10 +- .../HotspotReviewHistory-test.tsx.snap | 24 +- .../HotspotReviewHistoryAndComments-test.tsx.snap | 68 +- .../__snapshots__/HotspotSimpleList-test.tsx.snap | 16 +- .../HotspotSnippetContainer-test.tsx.snap | 68 +- .../HotspotSnippetContainerRenderer-test.tsx.snap | 194 +- .../__snapshots__/HotspotViewer-test.tsx.snap | 34 +- .../HotspotViewerRenderer-test.tsx.snap | 924 ++++----- .../__snapshots__/HotspotViewerTabs-test.tsx.snap | 96 +- .../StatusUpdateSuccessModal-test.tsx.snap | 6 +- .../__tests__/__snapshots__/Assignee-test.tsx.snap | 2 +- .../__snapshots__/AssigneeRenderer-test.tsx.snap | 10 +- .../__snapshots__/AssigneeSelection-test.tsx.snap | 4 +- .../AdditionalCategories-test.tsx.snap | 76 +- .../__snapshots__/AnalysisScope-test.tsx.snap | 14 +- .../__snapshots__/DefinitionActions-test.tsx.snap | 2 +- .../__snapshots__/DefinitionRenderer-test.tsx.snap | 108 +- .../__snapshots__/Languages-test.tsx.snap | 20 +- .../__snapshots__/NewCodePeriod-test.tsx.snap | 2 +- .../__snapshots__/PageHeader-test.tsx.snap | 16 +- .../__snapshots__/SettingsApp-test.tsx.snap | 2 +- .../SettingsAppRenderer-test.tsx.snap | 164 +- .../SettingsSearchRenderer-test.tsx.snap | 4 +- .../SubCategoryDefinitionsList-test.tsx.snap | 36 +- .../AlmBindingDefinitionBox-test.tsx.snap | 6 +- .../AlmBindingDefinitionForm-test.tsx.snap | 4 +- .../AlmBindingDefinitionFormField-test.tsx.snap | 2 +- .../AlmBindingDefinitionFormRenderer-test.tsx.snap | 18 +- .../__snapshots__/AlmIntegration-test.tsx.snap | 14 +- .../AlmIntegrationRenderer-test.tsx.snap | 84 +- .../__tests__/__snapshots__/AlmTab-test.tsx.snap | 6 +- .../__snapshots__/AlmTabRenderer-test.tsx.snap | 24 +- .../__snapshots__/AzureForm-test.tsx.snap | 4 +- .../__snapshots__/BitbucketCloudForm-test.tsx.snap | 8 +- .../__snapshots__/BitbucketForm-test.tsx.snap | 20 +- .../BitbucketServerForm-test.tsx.snap | 4 +- .../__snapshots__/CreationTooltip-test.tsx.snap | 2 +- .../__snapshots__/DeleteModal-test.tsx.snap | 4 +- .../__snapshots__/GithubForm-test.tsx.snap | 4 +- .../__snapshots__/GitlabForm-test.tsx.snap | 4 +- .../__snapshots__/InputForJSON-test.tsx.snap | 2 +- .../__snapshots__/PrimitiveInput-test.tsx.snap | 120 +- .../__snapshots__/AlmSpecificForm-test.tsx.snap | 2 +- .../PRDecorationBinding-test.tsx.snap | 4 +- .../PRDecorationBindingRenderer-test.tsx.snap | 86 +- .../__snapshots__/EncryptionForm-test.tsx.snap | 2 +- .../GenerateSecretKeyForm-test.tsx.snap | 2 +- .../__tests__/__snapshots__/App-test.tsx.snap | 128 +- .../__snapshots__/ClusterSysInfos-test.tsx.snap | 26 +- .../__snapshots__/StandaloneSysInfos-test.tsx.snap | 34 +- .../__snapshots__/HealthCard-test.tsx.snap | 6 +- .../__tests__/__snapshots__/Section-test.tsx.snap | 8 +- .../__snapshots__/SysInfoItem-test.tsx.snap | 2 +- .../__snapshots__/TutorialsApp-test.tsx.snap | 42 +- .../__tests__/__snapshots__/UsersApp-test.tsx.snap | 26 +- .../__snapshots__/UsersList-test.tsx.snap | 8 +- .../__snapshots__/GroupsForm-test.tsx.snap | 4 +- .../__snapshots__/TokensFormItem-test.tsx.snap | 2 +- .../__snapshots__/TokensFormModal-test.tsx.snap | 2 +- .../__snapshots__/UserListItem-test.tsx.snap | 32 +- .../UserListItemIdentity-test.tsx.snap | 8 +- .../__tests__/__snapshots__/Action-test.tsx.snap | 36 +- .../__tests__/__snapshots__/Domain-test.tsx.snap | 92 +- .../__tests__/__snapshots__/Menu-test.tsx.snap | 18 +- .../__tests__/__snapshots__/Params-test.tsx.snap | 24 +- .../__snapshots__/ResponseExample-test.tsx.snap | 2 +- .../__snapshots__/WebApiApp-test.tsx.snap | 18 +- .../__tests__/__snapshots__/App-test.tsx.snap | 6 +- .../__snapshots__/CreateWebhookForm-test.tsx.snap | 6 +- .../__snapshots__/DeliveriesForm-test.tsx.snap | 4 +- .../__snapshots__/LatestDeliveryForm-test.tsx.snap | 6 +- .../__snapshots__/PageHeader-test.tsx.snap | 2 +- .../__snapshots__/WebhookItem-test.tsx.snap | 4 +- .../__snapshots__/WebhooksList-test.tsx.snap | 4 +- 270 files changed, 7252 insertions(+), 7252 deletions(-) (limited to 'server/sonar-web/src/main/js/apps') diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/BackgroundTasksApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/BackgroundTasksApp-test.tsx.snap index 9583b2a6780..2789a48d441 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/BackgroundTasksApp-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/BackgroundTasksApp-test.tsx.snap @@ -25,49 +25,49 @@ exports[`should render correctly: loaded 1`] = ` />
`; @@ -104,7 +104,7 @@ exports[`should render correctly: loaded (ScreenPositionHelper) 1`] = `
@@ -225,35 +225,35 @@ exports[`should render correctly: loaded 1`] = ` > @@ -64,7 +64,7 @@ exports[`should render correctly 1`] = ` onChange={[MockFunction]} onToggle={[MockFunction]} open={false} - referencedProfiles={Object {}} + referencedProfiles={{}} /> Why Because", "key": "default", }, @@ -42,8 +42,8 @@ exports[`should render correctly: loaded 1`] = ` "lang": "java", "langName": "Java", "mdDesc": "", - "name": "\\".equals()\\" should not be used to test the values of \\"Atomic\\" classes", - "params": Array [], + "name": "".equals()" should not be used to test the values of "Atomic" classes", + "params": [], "remFnBaseEffort": "5min", "remFnOverloaded": false, "remFnType": "CONSTANT_ISSUE", @@ -51,10 +51,10 @@ exports[`should render correctly: loaded 1`] = ` "scope": "MAIN", "severity": "MAJOR", "status": "READY", - "sysTags": Array [ + "sysTags": [ "multi-threading", ], - "tags": Array [], + "tags": [], "type": "BUG", } } @@ -62,7 +62,7 @@ exports[`should render correctly: loaded 1`] = ` Why Because", "key": "default", }, @@ -84,8 +84,8 @@ exports[`should render correctly: loaded 1`] = ` "lang": "java", "langName": "Java", "mdDesc": "", - "name": "\\".equals()\\" should not be used to test the values of \\"Atomic\\" classes", - "params": Array [], + "name": "".equals()" should not be used to test the values of "Atomic" classes", + "params": [], "remFnBaseEffort": "5min", "remFnOverloaded": false, "remFnType": "CONSTANT_ISSUE", @@ -93,21 +93,21 @@ exports[`should render correctly: loaded 1`] = ` "scope": "MAIN", "severity": "MAJOR", "status": "READY", - "sysTags": Array [ + "sysTags": [ "multi-threading", ], - "tags": Array [], + "tags": [], "type": "BUG", } } /> Why Because", "key": "default", }, @@ -157,8 +157,8 @@ exports[`should render correctly: loaded 1`] = ` "lang": "java", "langName": "Java", "mdDesc": "", - "name": "\\".equals()\\" should not be used to test the values of \\"Atomic\\" classes", - "params": Array [], + "name": "".equals()" should not be used to test the values of "Atomic" classes", + "params": [], "remFnBaseEffort": "5min", "remFnOverloaded": false, "remFnType": "CONSTANT_ISSUE", @@ -166,17 +166,17 @@ exports[`should render correctly: loaded 1`] = ` "scope": "MAIN", "severity": "MAJOR", "status": "READY", - "sysTags": Array [ + "sysTags": [ "multi-threading", ], - "tags": Array [], + "tags": [], "type": "BUG", } } /> Why Because", "key": "default", }, @@ -198,8 +198,8 @@ exports[`should render correctly: loaded 1`] = ` "lang": "java", "langName": "Java", "mdDesc": "", - "name": "\\".equals()\\" should not be used to test the values of \\"Atomic\\" classes", - "params": Array [], + "name": "".equals()" should not be used to test the values of "Atomic" classes", + "params": [], "remFnBaseEffort": "5min", "remFnOverloaded": false, "remFnType": "CONSTANT_ISSUE", @@ -207,10 +207,10 @@ exports[`should render correctly: loaded 1`] = ` "scope": "MAIN", "severity": "MAJOR", "status": "READY", - "sysTags": Array [ + "sysTags": [ "multi-threading", ], - "tags": Array [], + "tags": [], "type": "BUG", } } diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsIssues-test.tsx.snap b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsIssues-test.tsx.snap index 4c6016c40b9..17a67804b2e 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsIssues-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsIssues-test.tsx.snap @@ -17,7 +17,7 @@ exports[`should fetch issues and render 1`] = ` ( } overlayPlacement="bottom-left" @@ -104,7 +104,7 @@ exports[`should display right meta info 1`] = ` } overlayPlacement="bottom-left" @@ -280,7 +280,7 @@ exports[`should edit tags 1`] = `

`; diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleListItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleListItem-test.tsx.snap index 2ae4d1df139..7d0ea3c9c88 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleListItem-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleListItem-test.tsx.snap @@ -42,9 +42,9 @@ exports[`renderActions should render the activate button 1`] = ` modalHeader="coding_rules.activate_in_quality_profile" onDone={[Function]} profiles={ - Array [ - Object { - "actions": Object { + [ + { + "actions": { "edit": true, }, "activeDeprecatedRuleCount": 2, @@ -63,7 +63,7 @@ exports[`renderActions should render the activate button 1`] = ` ] } rule={ - Object { + { "isTemplate": false, "key": "javascript:S1067", "lang": "js", @@ -71,11 +71,11 @@ exports[`renderActions should render the activate button 1`] = ` "name": "Use foo", "severity": "MAJOR", "status": "READY", - "sysTags": Array [ + "sysTags": [ "a", "b", ], - "tags": Array [ + "tags": [ "x", ], "type": "CODE_SMELL", @@ -120,7 +120,7 @@ exports[`should render correctly: default 1`] = ` className="link-no-underline" onClick={[Function]} to={ - Object { + { "pathname": "/coding_rules", "search": "?open=javascript%3AS1067&rule_key=javascript%3AS1067", } @@ -161,7 +161,7 @@ exports[`should render correctly: default 1`] = ` allowUpdate={false} className="display-inline-flex-center note spacer-left" tags={ - Array [ + [ "x", "a", "b", @@ -171,18 +171,18 @@ exports[`should render correctly: default 1`] = ` `; diff --git a/server/sonar-web/src/main/js/apps/component-measures/__tests__/__snapshots__/utils-test.ts.snap b/server/sonar-web/src/main/js/apps/component-measures/__tests__/__snapshots__/utils-test.ts.snap index 607d0107af0..2085725441f 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/__tests__/__snapshots__/utils-test.ts.snap +++ b/server/sonar-web/src/main/js/apps/component-measures/__tests__/__snapshots__/utils-test.ts.snap @@ -1,34 +1,34 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`groupByDomains should correctly group by domains 1`] = ` -Array [ - Object { - "measures": Array [ - Object { +[ + { + "measures": [ + { "leak": "70", - "metric": Object { + "metric": { "domain": "Coverage", "id": "1", "key": "lines_to_cover", "name": "Lines to Cover", "type": "INT", }, - "period": Object { + "period": { "index": 1, "value": "70", }, "value": "431", }, - Object { + { "leak": "0.0999999999999943", - "metric": Object { + "metric": { "domain": "Coverage", "id": "2", "key": "coverage", "name": "Coverage", "type": "PERCENT", }, - "period": Object { + "period": { "index": 1, "value": "0.0999999999999943", }, @@ -37,18 +37,18 @@ Array [ ], "name": "Coverage", }, - Object { - "measures": Array [ - Object { + { + "measures": [ + { "leak": "0.0", - "metric": Object { + "metric": { "domain": "Duplications", "id": "3", "key": "duplicated_lines_density", "name": "Duplicated Lines (%)", "type": "PERCENT", }, - "period": Object { + "period": { "index": 1, "value": "0.0", }, @@ -61,17 +61,17 @@ Array [ `; exports[`sortMeasures should sort based on the config 1`] = ` -Array [ - Object { - "metric": Object { +[ + { + "metric": { "id": "3", "key": "new_bugs", "name": "new_bugs", "type": "INT", }, }, - Object { - "metric": Object { + { + "metric": { "id": "2", "key": "new_reliability_remediation_effort", "name": "bugs", @@ -79,16 +79,16 @@ Array [ }, }, "overall_category", - Object { - "metric": Object { + { + "metric": { "id": "4", "key": "bugs", "name": "bugs", "type": "INT", }, }, - Object { - "metric": Object { + { + "metric": { "id": "1", "key": "reliability_remediation_effort", "name": "new_bugs", diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/App-test.tsx.snap index 6a6c0f51402..17e692d4ad3 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/App-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/App-test.tsx.snap @@ -62,7 +62,7 @@ exports[`should render a warning message when user does not have access to all p

, "label": "component_measures.tab.tree", "value": "tree", }, - Object { + { "icon": , "label": "component_measures.tab.treemap", "value": "treemap", @@ -34,7 +34,7 @@ exports[`should render correctly: has no tree 1`] = ` aria-labelledby="measures-view-selection-label" blurInputOnSelect={true} components={ - Object { + { "Option": [Function], "SingleValue": [Function], } @@ -42,8 +42,8 @@ exports[`should render correctly: has no tree 1`] = ` isSearchable={false} onChange={[Function]} options={ - Array [ - Object { + [ + { "icon": , "label": "component_measures.tab.list", "value": "list", @@ -51,7 +51,7 @@ exports[`should render correctly: has no tree 1`] = ` ] } value={ - Object { + { "icon": , "label": "component_measures.tab.list", "value": "list", @@ -65,7 +65,7 @@ exports[`should render correctly: has no treemap 1`] = ` aria-labelledby="measures-view-selection-label" blurInputOnSelect={true} components={ - Object { + { "Option": [Function], "SingleValue": [Function], } @@ -73,18 +73,18 @@ exports[`should render correctly: has no treemap 1`] = ` isSearchable={false} onChange={[Function]} options={ - Array [ - Object { + [ + { "icon": , "label": "component_measures.tab.tree", "value": "tree", }, - Object { + { "icon": , "label": "component_measures.tab.list", "value": "list", }, - Object { + { "icon": , "label": "component_measures.tab.treemap", "value": "treemap", @@ -92,7 +92,7 @@ exports[`should render correctly: has no treemap 1`] = ` ] } value={ - Object { + { "icon": , "label": "component_measures.tab.list", "value": "list", diff --git a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/BubbleChart-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/BubbleChart-test.tsx.snap index 955414241f7..5c1419f015f 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/BubbleChart-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/BubbleChart-test.tsx.snap @@ -35,7 +35,7 @@ exports[`should render correctly: all on x=0 1`] = ` @@ -48,7 +48,7 @@ exports[`should render correctly: all on x=0 1`] = ` > @@ -256,7 +256,7 @@ exports[`should render correctly: default 1`] = ` > @@ -469,7 +469,7 @@ exports[`should render correctly: only showing first 500 files 1`] = ` >
diff --git a/server/sonar-web/src/main/js/apps/projectDump/components/__tests__/__snapshots__/Import-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectDump/components/__tests__/__snapshots__/Import-test.tsx.snap index 7c3c0bd960b..0a0c403a888 100644 --- a/server/sonar-web/src/main/js/apps/projectDump/components/__tests__/__snapshots__/Import-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectDump/components/__tests__/__snapshots__/Import-test.tsx.snap @@ -44,7 +44,7 @@ exports[`should render correctly: failed 1`] = `
@@ -34,12 +34,12 @@ Array [ isDisabled={false} onChange={[Function]} options={ - Array [ - Object { + [ + { "label": "CSS", "value": "css", }, - Object { + { "label": "TS", "value": "ts", }, @@ -63,14 +63,14 @@ Array [ @@ -197,21 +197,21 @@ Array [ @@ -26,7 +26,7 @@ exports[`should render correctly 1`] = ` className="thin nowrap text-middle" > @@ -113,7 +113,7 @@ exports[`should render correctly without last connection date 1`] = ` className="thin nowrap text-middle" >
@@ -49,41 +49,41 @@ exports[`should render correctly 2`] = ` > `; @@ -62,7 +62,7 @@ exports[`should render correctly 2`] = ` /> @@ -63,12 +63,12 @@ exports[`should render correctly 1`] = ` onUpdateUsers={[MockFunction]} updateTokensCount={[MockFunction]} user={ - Object { + { "active": true, "local": false, "login": "obi", "name": "One", - "scmAccounts": Array [], + "scmAccounts": [], } } /> diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/GroupsForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/GroupsForm-test.tsx.snap index f8a5bab167e..42d2eea5e78 100644 --- a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/GroupsForm-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/GroupsForm-test.tsx.snap @@ -17,7 +17,7 @@ exports[`should render correctly 1`] = ` > foo , diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormModal-test.tsx.snap index d52a6fcd165..b2fc2f786f1 100644 --- a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormModal-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormModal-test.tsx.snap @@ -14,7 +14,7 @@ exports[`should render correctly 1`] = ` defaultMessage="users.user_X_tokens" id="users.user_X_tokens" values={ - Object { + { "user": John Doe , diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItem-test.tsx.snap index 9d62cbde539..a4e8b65bfc3 100644 --- a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItem-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItem-test.tsx.snap @@ -12,13 +12,13 @@ exports[`should render correctly 1`] = ` @@ -73,13 +73,13 @@ exports[`should render correctly 1`] = ` isCurrentUser={false} onUpdateUsers={[MockFunction]} user={ - Object { + { "active": true, "lastConnectionDate": "2019-01-18T15:06:33+0100", "local": false, "login": "obi", "name": "One", - "scmAccounts": Array [], + "scmAccounts": [], } } /> @@ -99,13 +99,13 @@ exports[`should render correctly without last connection date 1`] = ` @@ -160,13 +160,13 @@ exports[`should render correctly without last connection date 1`] = ` isCurrentUser={false} onUpdateUsers={[MockFunction]} user={ - Object { + { "active": true, "lastConnectionDate": "2019-01-18T15:06:33+0100", "local": false, "login": "obi", "name": "One", - "scmAccounts": Array [], + "scmAccounts": [], } } /> diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItemIdentity-test.tsx.snap b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItemIdentity-test.tsx.snap index c6b01bdea01..eccdb8b8147 100644 --- a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItemIdentity-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItemIdentity-test.tsx.snap @@ -7,7 +7,7 @@ exports[`#ExternalProvider should render correctly 1`] = `
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Action-test.tsx.snap b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Action-test.tsx.snap index c01b5c6181d..3bd42dc7b85 100644 --- a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Action-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Action-test.tsx.snap @@ -3,8 +3,8 @@ exports[`should display the changelog 1`] = `
       
       
     
     
   
diff --git a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhookItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhookItem-test.tsx.snap index f418ca06cc4..cc748f5df22 100644 --- a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhookItem-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhookItem-test.tsx.snap @@ -14,7 +14,7 @@ exports[`should render correctly 1`] = `