diff --git a/test/workers/repository/updates/__snapshots__/flatten.spec.js.snap b/test/workers/repository/updates/__snapshots__/flatten.spec.js.snap deleted file mode 100644 index b1a9a74e2bf1229d1f82efff0cbaaea9ba4b87d7..0000000000000000000000000000000000000000 --- a/test/workers/repository/updates/__snapshots__/flatten.spec.js.snap +++ /dev/null @@ -1,1013 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`workers/repository/updates/flatten flattenUpdates() flattens 1`] = ` -Array [ - Object { - "assignees": Array [], - "automerge": false, - "automergeComment": "automergeComment", - "automergeType": "pr", - "azureAutoComplete": false, - "azureWorkItemId": 0, - "baseDir": null, - "bbUseDefaultReviewers": true, - "binarySource": "bundled", - "branchName": "{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}", - "branchPrefix": "renovate/", - "branchTopic": "{{{depNameSanitized}}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x{{#if isLockfileUpdate}}-lockfile{{/if}}", - "bumpVersion": null, - "cacheDir": null, - "commitBody": null, - "commitMessage": "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}", - "commitMessageAction": "Update", - "commitMessageExtra": "to {{#if isMajor}}v{{{newMajor}}}{{else}}{{#if isSingleVersion}}v{{{toVersion}}}{{else}}{{{newValue}}}{{/if}}{{/if}}", - "commitMessagePrefix": null, - "commitMessageSuffix": null, - "commitMessageTopic": "dependency {{depName}}", - "compatibility": Object {}, - "depName": "@org/a", - "depNameSanitized": "org-a", - "dryRun": false, - "errors": Array [], - "excludeCommitPaths": Array [], - "gitAuthor": null, - "gitPrivateKey": null, - "group": Object { - "branchTopic": "{{{groupSlug}}}", - "commitMessageTopic": "{{{groupName}}}", - }, - "groupName": null, - "groupSlug": null, - "ignoreNpmrcFile": false, - "labels": Array [], - "language": "js", - "lazyGrouping": true, - "manager": "npm", - "managerBranchPrefix": "", - "masterIssue": false, - "masterIssueApproval": false, - "masterIssueAutoclose": false, - "masterIssueTitle": "Update Dependencies (Renovate Bot)", - "newValue": "1.0.0", - "npmToken": null, - "npmrc": null, - "packageFile": "package.json", - "persistRepoData": false, - "platform": "github", - "postUpdateOptions": Array [], - "prBodyColumns": Array [ - "Package", - "Type", - "Update", - "Change", - "References", - ], - "prBodyDefinitions": Object { - "Change": "[{{#if displayFrom}}\`{{{displayFrom}}}\` -> {{else}}{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}{{/if}}{{#if displayTo}}\`{{{displayTo}}}\`{{else}}\`{{{newValue}}}\`{{/if}}](https://diff.intrinsic.com/{{{depName}}}/{{{fromVersion}}}/{{{toVersion}}})", - "Current value": "{{{currentValue}}}", - "New value": "{{{newValue}}}", - "Package": "{{{depName}}}", - "Package file": "{{{packageFile}}}", - "References": "{{{references}}}", - "Type": "{{{depType}}}", - "Update": "{{{updateType}}}", - }, - "prBodyNotes": Array [], - "prConcurrentLimit": 0, - "prCreation": "immediate", - "prHourlyLimit": 0, - "prNotPendingHours": 25, - "prTitle": null, - "printConfig": false, - "rangeStrategy": "replace", - "rebaseLabel": "rebase", - "rebaseStalePrs": null, - "recreateClosed": false, - "registryUrls": null, - "requiredStatusChecks": Array [], - "reviewers": Array [], - "rollbackPrs": true, - "schedule": "at any time", - "semanticCommitScope": "deps", - "semanticCommitType": "chore", - "semanticCommits": null, - "separateMajorMinor": true, - "separateMinorPatch": false, - "skipInstalls": null, - "statusCheckVerify": false, - "suppressNotifications": Array [ - "deprecationWarningIssues", - ], - "timezone": null, - "unpublishSafe": false, - "updateLockFiles": true, - "updateNotScheduled": true, - "versionScheme": "npm", - "vulnerabilityAlerts": Object { - "commitMessageSuffix": "[SECURITY]", - "enabled": true, - "groupName": null, - "masterIssueApproval": false, - "rangeStrategy": "update-lockfile", - "schedule": Array [], - }, - "warnings": Array [], - "yarnrc": null, - }, - Object { - "assignees": Array [], - "automerge": false, - "automergeComment": "automergeComment", - "automergeType": "pr", - "azureAutoComplete": false, - "azureWorkItemId": 0, - "baseDir": null, - "bbUseDefaultReviewers": true, - "binarySource": "bundled", - "branchName": "{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}", - "branchPrefix": "renovate/", - "branchTopic": "{{{depNameSanitized}}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x{{#if isLockfileUpdate}}-lockfile{{/if}}", - "bumpVersion": null, - "cacheDir": null, - "commitBody": null, - "commitMessage": "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}", - "commitMessageAction": "Update", - "commitMessageExtra": "to {{#if isMajor}}v{{{newMajor}}}{{else}}{{#if isSingleVersion}}v{{{toVersion}}}{{else}}{{{newValue}}}{{/if}}{{/if}}", - "commitMessagePrefix": null, - "commitMessageSuffix": null, - "commitMessageTopic": "dependency {{depName}}", - "compatibility": Object {}, - "depName": "foo", - "depNameSanitized": "foo", - "dryRun": false, - "errors": Array [], - "excludeCommitPaths": Array [], - "gitAuthor": null, - "gitPrivateKey": null, - "group": Object { - "branchTopic": "{{{groupSlug}}}", - "commitMessageTopic": "{{{groupName}}}", - }, - "groupName": null, - "groupSlug": null, - "ignoreNpmrcFile": false, - "labels": Array [], - "language": "js", - "lazyGrouping": true, - "manager": "npm", - "managerBranchPrefix": "", - "masterIssue": false, - "masterIssueApproval": false, - "masterIssueAutoclose": false, - "masterIssueTitle": "Update Dependencies (Renovate Bot)", - "newValue": "2.0.0", - "npmToken": null, - "npmrc": null, - "packageFile": "package.json", - "persistRepoData": false, - "platform": "github", - "postUpdateOptions": Array [], - "prBodyColumns": Array [ - "Package", - "Type", - "Update", - "Change", - "References", - ], - "prBodyDefinitions": Object { - "Change": "[{{#if displayFrom}}\`{{{displayFrom}}}\` -> {{else}}{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}{{/if}}{{#if displayTo}}\`{{{displayTo}}}\`{{else}}\`{{{newValue}}}\`{{/if}}](https://diff.intrinsic.com/{{{depName}}}/{{{fromVersion}}}/{{{toVersion}}})", - "Current value": "{{{currentValue}}}", - "New value": "{{{newValue}}}", - "Package": "{{{depName}}}", - "Package file": "{{{packageFile}}}", - "References": "{{{references}}}", - "Type": "{{{depType}}}", - "Update": "{{{updateType}}}", - }, - "prBodyNotes": Array [], - "prConcurrentLimit": 0, - "prCreation": "immediate", - "prHourlyLimit": 0, - "prNotPendingHours": 25, - "prTitle": null, - "printConfig": false, - "rangeStrategy": "replace", - "rebaseLabel": "rebase", - "rebaseStalePrs": null, - "recreateClosed": false, - "registryUrls": null, - "requiredStatusChecks": Array [], - "reviewers": Array [], - "rollbackPrs": true, - "schedule": "at any time", - "semanticCommitScope": "deps", - "semanticCommitType": "chore", - "semanticCommits": null, - "separateMajorMinor": true, - "separateMinorPatch": false, - "skipInstalls": null, - "statusCheckVerify": false, - "suppressNotifications": Array [ - "deprecationWarningIssues", - ], - "timezone": null, - "unpublishSafe": false, - "updateLockFiles": true, - "updateNotScheduled": true, - "versionScheme": "npm", - "vulnerabilityAlerts": Object { - "commitMessageSuffix": "[SECURITY]", - "enabled": true, - "groupName": null, - "masterIssueApproval": false, - "rangeStrategy": "update-lockfile", - "schedule": Array [], - }, - "warnings": Array [], - "yarnrc": null, - }, - Object { - "assignees": Array [], - "automerge": false, - "automergeComment": "automergeComment", - "automergeType": "pr", - "azureAutoComplete": false, - "azureWorkItemId": 0, - "baseDir": null, - "bbUseDefaultReviewers": true, - "binarySource": "bundled", - "branchName": "{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}", - "branchPrefix": "renovate/", - "branchTopic": "{{{depNameSanitized}}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x{{#if isLockfileUpdate}}-lockfile{{/if}}", - "bumpVersion": null, - "cacheDir": null, - "commitBody": null, - "commitMessage": "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}", - "commitMessageAction": "Update", - "commitMessageExtra": "to {{#if isMajor}}v{{{newMajor}}}{{else}}{{#if isSingleVersion}}v{{{toVersion}}}{{else}}{{{newValue}}}{{/if}}{{/if}}", - "commitMessagePrefix": null, - "commitMessageSuffix": null, - "commitMessageTopic": "dependency {{depName}}", - "compatibility": Object {}, - "depNameSanitized": undefined, - "dryRun": false, - "errors": Array [], - "excludeCommitPaths": Array [], - "gitAuthor": null, - "gitPrivateKey": null, - "group": Object { - "branchTopic": "{{{groupSlug}}}", - "commitMessageTopic": "{{{groupName}}}", - }, - "groupName": null, - "groupSlug": null, - "ignoreNpmrcFile": false, - "labels": Array [], - "language": "js", - "lazyGrouping": true, - "manager": "npm", - "managerBranchPrefix": "", - "masterIssue": false, - "masterIssueApproval": false, - "masterIssueAutoclose": false, - "masterIssueTitle": "Update Dependencies (Renovate Bot)", - "newValue": "2.0.0", - "npmToken": null, - "npmrc": null, - "packageFile": "package.json", - "persistRepoData": false, - "platform": "github", - "postUpdateOptions": Array [], - "prBodyColumns": Array [ - "Package", - "Type", - "Update", - "Change", - "References", - ], - "prBodyDefinitions": Object { - "Change": "[{{#if displayFrom}}\`{{{displayFrom}}}\` -> {{else}}{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}{{/if}}{{#if displayTo}}\`{{{displayTo}}}\`{{else}}\`{{{newValue}}}\`{{/if}}](https://diff.intrinsic.com/{{{depName}}}/{{{fromVersion}}}/{{{toVersion}}})", - "Current value": "{{{currentValue}}}", - "New value": "{{{newValue}}}", - "Package": "{{{depName}}}", - "Package file": "{{{packageFile}}}", - "References": "{{{references}}}", - "Type": "{{{depType}}}", - "Update": "{{{updateType}}}", - }, - "prBodyNotes": Array [], - "prConcurrentLimit": 0, - "prCreation": "immediate", - "prHourlyLimit": 0, - "prNotPendingHours": 25, - "prTitle": null, - "printConfig": false, - "rangeStrategy": "replace", - "rebaseLabel": "rebase", - "rebaseStalePrs": null, - "recreateClosed": false, - "registryUrls": null, - "requiredStatusChecks": Array [], - "reviewers": Array [], - "rollbackPrs": true, - "schedule": "at any time", - "semanticCommitScope": "deps", - "semanticCommitType": "chore", - "semanticCommits": null, - "separateMajorMinor": true, - "separateMinorPatch": false, - "skipInstalls": null, - "statusCheckVerify": false, - "suppressNotifications": Array [ - "deprecationWarningIssues", - ], - "timezone": null, - "unpublishSafe": false, - "updateLockFiles": true, - "updateNotScheduled": true, - "versionScheme": "npm", - "vulnerabilityAlerts": Object { - "commitMessageSuffix": "[SECURITY]", - "enabled": true, - "groupName": null, - "masterIssueApproval": false, - "rangeStrategy": "update-lockfile", - "schedule": Array [], - }, - "warnings": Array [], - "yarnrc": null, - }, - Object { - "assignees": Array [], - "automerge": false, - "automergeComment": "automergeComment", - "automergeType": "pr", - "azureAutoComplete": false, - "azureWorkItemId": 0, - "baseDir": null, - "bbUseDefaultReviewers": true, - "binarySource": "bundled", - "branchName": "{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}", - "branchPrefix": "renovate/", - "branchTopic": "lock-file-maintenance", - "bumpVersion": null, - "cacheDir": null, - "commitBody": null, - "commitMessage": "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}", - "commitMessageAction": "Lock file maintenance", - "commitMessageExtra": null, - "commitMessagePrefix": null, - "commitMessageSuffix": null, - "commitMessageTopic": null, - "compatibility": Object {}, - "dryRun": false, - "errors": Array [], - "excludeCommitPaths": Array [], - "gitAuthor": null, - "gitPrivateKey": null, - "group": Object { - "branchTopic": "{{{groupSlug}}}", - "commitMessageTopic": "{{{groupName}}}", - }, - "groupName": null, - "groupSlug": null, - "ignoreNpmrcFile": false, - "labels": Array [], - "language": "js", - "lazyGrouping": true, - "manager": "npm", - "managerBranchPrefix": "", - "masterIssue": false, - "masterIssueApproval": false, - "masterIssueAutoclose": false, - "masterIssueTitle": "Update Dependencies (Renovate Bot)", - "npmToken": null, - "npmrc": null, - "packageFile": "package.json", - "persistRepoData": false, - "platform": "github", - "postUpdateOptions": Array [], - "prBodyColumns": Array [ - "Package", - "Type", - "Update", - "Change", - "References", - ], - "prBodyDefinitions": Object { - "Change": "[{{#if displayFrom}}\`{{{displayFrom}}}\` -> {{else}}{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}{{/if}}{{#if displayTo}}\`{{{displayTo}}}\`{{else}}\`{{{newValue}}}\`{{/if}}](https://diff.intrinsic.com/{{{depName}}}/{{{fromVersion}}}/{{{toVersion}}})", - "Current value": "{{{currentValue}}}", - "New value": "{{{newValue}}}", - "Package": "{{{depName}}}", - "Package file": "{{{packageFile}}}", - "References": "{{{references}}}", - "Type": "{{{depType}}}", - "Update": "{{{updateType}}}", - }, - "prBodyNotes": Array [], - "prConcurrentLimit": 0, - "prCreation": "immediate", - "prHourlyLimit": 0, - "prNotPendingHours": 25, - "prTitle": null, - "printConfig": false, - "rangeStrategy": "replace", - "rebaseLabel": "rebase", - "rebaseStalePrs": true, - "recreateClosed": true, - "registryUrls": null, - "requiredStatusChecks": Array [], - "reviewers": Array [], - "rollbackPrs": true, - "schedule": Array [ - "before 5am on monday", - ], - "semanticCommitScope": "deps", - "semanticCommitType": "chore", - "semanticCommits": null, - "separateMajorMinor": true, - "separateMinorPatch": false, - "skipInstalls": null, - "statusCheckVerify": false, - "suppressNotifications": Array [ - "deprecationWarningIssues", - ], - "timezone": null, - "unpublishSafe": false, - "updateLockFiles": true, - "updateNotScheduled": true, - "updateType": "lockFileMaintenance", - "versionScheme": "npm", - "vulnerabilityAlerts": Object { - "commitMessageSuffix": "[SECURITY]", - "enabled": true, - "groupName": null, - "masterIssueApproval": false, - "rangeStrategy": "update-lockfile", - "schedule": Array [], - }, - "warnings": Array [], - "yarnrc": null, - }, - Object { - "assignees": Array [], - "automerge": false, - "automergeComment": "automergeComment", - "automergeType": "pr", - "azureAutoComplete": false, - "azureWorkItemId": 0, - "baseDir": null, - "bbUseDefaultReviewers": true, - "binarySource": "bundled", - "branchName": "{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}", - "branchPrefix": "renovate/", - "branchTopic": "{{{depNameSanitized}}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x{{#if isLockfileUpdate}}-lockfile{{/if}}", - "bumpVersion": null, - "cacheDir": null, - "commitBody": null, - "commitMessage": "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}", - "commitMessageAction": "Update", - "commitMessageExtra": "to {{#if isMajor}}v{{{newMajor}}}{{else}}{{#if isSingleVersion}}v{{{toVersion}}}{{else}}{{{newValue}}}{{/if}}{{/if}}", - "commitMessagePrefix": null, - "commitMessageSuffix": null, - "commitMessageTopic": "dependency {{depName}}", - "compatibility": Object {}, - "depName": "bar", - "depNameSanitized": "bar", - "dryRun": false, - "errors": Array [], - "excludeCommitPaths": Array [], - "gitAuthor": null, - "gitPrivateKey": null, - "group": Object { - "branchTopic": "{{{groupSlug}}}", - "commitMessageTopic": "{{{groupName}}}", - }, - "groupName": null, - "groupSlug": null, - "ignoreNpmrcFile": false, - "labels": Array [], - "language": "js", - "lazyGrouping": true, - "manager": "npm", - "managerBranchPrefix": "", - "masterIssue": false, - "masterIssueApproval": false, - "masterIssueAutoclose": false, - "masterIssueTitle": "Update Dependencies (Renovate Bot)", - "newValue": "3.0.0", - "npmToken": null, - "npmrc": null, - "packageFile": "backend/package.json", - "persistRepoData": false, - "platform": "github", - "postUpdateOptions": Array [], - "prBodyColumns": Array [ - "Package", - "Type", - "Update", - "Change", - "References", - ], - "prBodyDefinitions": Object { - "Change": "[{{#if displayFrom}}\`{{{displayFrom}}}\` -> {{else}}{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}{{/if}}{{#if displayTo}}\`{{{displayTo}}}\`{{else}}\`{{{newValue}}}\`{{/if}}](https://diff.intrinsic.com/{{{depName}}}/{{{fromVersion}}}/{{{toVersion}}})", - "Current value": "{{{currentValue}}}", - "New value": "{{{newValue}}}", - "Package": "{{{depName}}}", - "Package file": "{{{packageFile}}}", - "References": "{{{references}}}", - "Type": "{{{depType}}}", - "Update": "{{{updateType}}}", - }, - "prBodyNotes": Array [], - "prConcurrentLimit": 0, - "prCreation": "immediate", - "prHourlyLimit": 0, - "prNotPendingHours": 25, - "prTitle": null, - "printConfig": false, - "rangeStrategy": "replace", - "rebaseLabel": "rebase", - "rebaseStalePrs": null, - "recreateClosed": false, - "registryUrls": null, - "requiredStatusChecks": Array [], - "reviewers": Array [], - "rollbackPrs": true, - "schedule": "at any time", - "semanticCommitScope": "deps", - "semanticCommitType": "chore", - "semanticCommits": null, - "separateMajorMinor": true, - "separateMinorPatch": false, - "skipInstalls": null, - "statusCheckVerify": false, - "suppressNotifications": Array [ - "deprecationWarningIssues", - ], - "timezone": null, - "unpublishSafe": false, - "updateLockFiles": true, - "updateNotScheduled": true, - "versionScheme": "npm", - "vulnerabilityAlerts": Object { - "commitMessageSuffix": "[SECURITY]", - "enabled": true, - "groupName": null, - "masterIssueApproval": false, - "rangeStrategy": "update-lockfile", - "schedule": Array [], - }, - "warnings": Array [], - "yarnrc": null, - }, - Object { - "assignees": Array [], - "automerge": false, - "automergeComment": "automergeComment", - "automergeType": "pr", - "azureAutoComplete": false, - "azureWorkItemId": 0, - "baseDir": null, - "bbUseDefaultReviewers": true, - "binarySource": "bundled", - "branchName": "{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}", - "branchPrefix": "renovate/", - "branchTopic": "lock-file-maintenance", - "bumpVersion": null, - "cacheDir": null, - "commitBody": null, - "commitMessage": "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}", - "commitMessageAction": "Lock file maintenance", - "commitMessageExtra": null, - "commitMessagePrefix": null, - "commitMessageSuffix": null, - "commitMessageTopic": null, - "compatibility": Object {}, - "dryRun": false, - "errors": Array [], - "excludeCommitPaths": Array [], - "gitAuthor": null, - "gitPrivateKey": null, - "group": Object { - "branchTopic": "{{{groupSlug}}}", - "commitMessageTopic": "{{{groupName}}}", - }, - "groupName": null, - "groupSlug": null, - "ignoreNpmrcFile": false, - "labels": Array [], - "language": "js", - "lazyGrouping": true, - "manager": "npm", - "managerBranchPrefix": "", - "masterIssue": false, - "masterIssueApproval": false, - "masterIssueAutoclose": false, - "masterIssueTitle": "Update Dependencies (Renovate Bot)", - "npmToken": null, - "npmrc": null, - "packageFile": "backend/package.json", - "persistRepoData": false, - "platform": "github", - "postUpdateOptions": Array [], - "prBodyColumns": Array [ - "Package", - "Type", - "Update", - "Change", - "References", - ], - "prBodyDefinitions": Object { - "Change": "[{{#if displayFrom}}\`{{{displayFrom}}}\` -> {{else}}{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}{{/if}}{{#if displayTo}}\`{{{displayTo}}}\`{{else}}\`{{{newValue}}}\`{{/if}}](https://diff.intrinsic.com/{{{depName}}}/{{{fromVersion}}}/{{{toVersion}}})", - "Current value": "{{{currentValue}}}", - "New value": "{{{newValue}}}", - "Package": "{{{depName}}}", - "Package file": "{{{packageFile}}}", - "References": "{{{references}}}", - "Type": "{{{depType}}}", - "Update": "{{{updateType}}}", - }, - "prBodyNotes": Array [], - "prConcurrentLimit": 0, - "prCreation": "immediate", - "prHourlyLimit": 0, - "prNotPendingHours": 25, - "prTitle": null, - "printConfig": false, - "rangeStrategy": "replace", - "rebaseLabel": "rebase", - "rebaseStalePrs": true, - "recreateClosed": true, - "registryUrls": null, - "requiredStatusChecks": Array [], - "reviewers": Array [], - "rollbackPrs": true, - "schedule": Array [ - "before 5am on monday", - ], - "semanticCommitScope": "deps", - "semanticCommitType": "chore", - "semanticCommits": null, - "separateMajorMinor": true, - "separateMinorPatch": false, - "skipInstalls": null, - "statusCheckVerify": false, - "suppressNotifications": Array [ - "deprecationWarningIssues", - ], - "timezone": null, - "unpublishSafe": false, - "updateLockFiles": true, - "updateNotScheduled": true, - "updateType": "lockFileMaintenance", - "versionScheme": "npm", - "vulnerabilityAlerts": Object { - "commitMessageSuffix": "[SECURITY]", - "enabled": true, - "groupName": null, - "masterIssueApproval": false, - "rangeStrategy": "update-lockfile", - "schedule": Array [], - }, - "warnings": Array [], - "yarnrc": null, - }, - Object { - "assignees": Array [], - "automerge": false, - "automergeComment": "automergeComment", - "automergeType": "pr", - "azureAutoComplete": false, - "azureWorkItemId": 0, - "baseDir": null, - "bbUseDefaultReviewers": true, - "binarySource": "bundled", - "branchName": "{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}", - "branchPrefix": "renovate/", - "branchTopic": "{{{depNameSanitized}}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x{{#if isLockfileUpdate}}-lockfile{{/if}}", - "bumpVersion": null, - "cacheDir": null, - "commitBody": null, - "commitMessage": "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}", - "commitMessageAction": "Update", - "commitMessageExtra": "to {{#if isMajor}}v{{{newMajor}}}{{else}}{{#if isSingleVersion}}v{{{toVersion}}}{{else}}{{{newValue}}}{{/if}}{{/if}}", - "commitMessagePrefix": null, - "commitMessageSuffix": null, - "commitMessageTopic": "dependency {{depName}}", - "compatibility": Object {}, - "depName": "baz", - "depNameSanitized": "baz", - "dryRun": false, - "errors": Array [], - "excludeCommitPaths": Array [], - "gitAuthor": null, - "gitPrivateKey": null, - "group": Object { - "branchTopic": "{{{groupSlug}}}", - "commitMessageTopic": "{{{groupName}}}", - }, - "groupName": null, - "groupSlug": null, - "ignoreNpmrcFile": false, - "labels": Array [], - "language": "js", - "lazyGrouping": true, - "manager": "npm", - "managerBranchPrefix": "", - "masterIssue": false, - "masterIssueApproval": false, - "masterIssueAutoclose": false, - "masterIssueTitle": "Update Dependencies (Renovate Bot)", - "newValue": "3.0.1", - "npmToken": null, - "npmrc": null, - "packageFile": "frontend/package.json", - "persistRepoData": false, - "platform": "github", - "postUpdateOptions": Array [], - "prBodyColumns": Array [ - "Package", - "Type", - "Update", - "Change", - "References", - ], - "prBodyDefinitions": Object { - "Change": "[{{#if displayFrom}}\`{{{displayFrom}}}\` -> {{else}}{{#if currentValue}}\`{{{currentValue}}}\` -> {{/if}}{{/if}}{{#if displayTo}}\`{{{displayTo}}}\`{{else}}\`{{{newValue}}}\`{{/if}}](https://diff.intrinsic.com/{{{depName}}}/{{{fromVersion}}}/{{{toVersion}}})", - "Current value": "{{{currentValue}}}", - "New value": "{{{newValue}}}", - "Package": "{{{depName}}}", - "Package file": "{{{packageFile}}}", - "References": "{{{references}}}", - "Type": "{{{depType}}}", - "Update": "{{{updateType}}}", - }, - "prBodyNotes": Array [], - "prConcurrentLimit": 0, - "prCreation": "immediate", - "prHourlyLimit": 0, - "prNotPendingHours": 25, - "prTitle": null, - "printConfig": false, - "rangeStrategy": "replace", - "rebaseLabel": "rebase", - "rebaseStalePrs": null, - "recreateClosed": false, - "registryUrls": null, - "requiredStatusChecks": Array [], - "reviewers": Array [], - "rollbackPrs": true, - "schedule": "at any time", - "semanticCommitScope": "deps", - "semanticCommitType": "chore", - "semanticCommits": null, - "separateMajorMinor": true, - "separateMinorPatch": false, - "skipInstalls": null, - "statusCheckVerify": false, - "suppressNotifications": Array [ - "deprecationWarningIssues", - ], - "timezone": null, - "unpublishSafe": false, - "updateLockFiles": true, - "updateNotScheduled": true, - "versionScheme": "npm", - "vulnerabilityAlerts": Object { - "commitMessageSuffix": "[SECURITY]", - "enabled": true, - "groupName": null, - "masterIssueApproval": false, - "rangeStrategy": "update-lockfile", - "schedule": Array [], - }, - "warnings": Array [], - "yarnrc": null, - }, - Object { - "assignees": Array [], - "automerge": false, - "automergeComment": "automergeComment", - "automergeType": "pr", - "azureAutoComplete": false, - "azureWorkItemId": 0, - "baseDir": null, - "bbUseDefaultReviewers": true, - "binarySource": "bundled", - "branchName": "{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}", - "branchPrefix": "renovate/", - "branchTopic": "{{{depNameSanitized}}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x{{#if isLockfileUpdate}}-lockfile{{/if}}", - "bumpVersion": null, - "cacheDir": null, - "commitBody": null, - "commitMessage": "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}", - "commitMessageAction": "Update", - "commitMessageExtra": "to v{{#if isMajor}}{{{newMajor}}}{{else}}{{{newVersion}}}{{/if}}", - "commitMessagePrefix": null, - "commitMessageSuffix": null, - "commitMessageTopic": "{{{depName}}} Docker tag", - "compatibility": Object {}, - "depName": "amd64/node", - "depNameSanitized": "node", - "dryRun": false, - "errors": Array [], - "excludeCommitPaths": Array [], - "gitAuthor": null, - "gitPrivateKey": null, - "group": Object { - "branchTopic": "{{{groupSlug}}}", - "commitMessageTopic": "{{{groupName}}} Docker tags", - }, - "groupName": null, - "groupSlug": null, - "ignoreNpmrcFile": false, - "labels": Array [], - "language": "docker", - "lazyGrouping": true, - "manager": "dockerfile", - "managerBranchPrefix": "", - "masterIssue": false, - "masterIssueApproval": false, - "masterIssueAutoclose": false, - "masterIssueTitle": "Update Dependencies (Renovate Bot)", - "newValue": "10.0.1", - "npmToken": null, - "npmrc": null, - "packageFile": "Dockerfile", - "persistRepoData": false, - "platform": "github", - "postUpdateOptions": Array [], - "prBodyColumns": Array [ - "Package", - "Type", - "Update", - "Change", - "References", - ], - "prBodyDefinitions": Object { - "Change": "\`{{{displayFrom}}}\` -> \`{{{displayTo}}}\`", - "Current value": "{{{currentValue}}}", - "New value": "{{{newValue}}}", - "Package": "{{{depName}}}", - "Package file": "{{{packageFile}}}", - "References": "{{{references}}}", - "Type": "{{{depType}}}", - "Update": "{{{updateType}}}", - }, - "prBodyNotes": Array [], - "prConcurrentLimit": 0, - "prCreation": "immediate", - "prHourlyLimit": 0, - "prNotPendingHours": 25, - "prTitle": null, - "printConfig": false, - "rangeStrategy": "replace", - "rebaseLabel": "rebase", - "rebaseStalePrs": null, - "recreateClosed": false, - "registryUrls": null, - "requiredStatusChecks": Array [], - "reviewers": Array [], - "rollbackPrs": false, - "schedule": "at any time", - "semanticCommitScope": "deps", - "semanticCommitType": "chore", - "semanticCommits": null, - "separateMajorMinor": true, - "separateMinorPatch": false, - "skipInstalls": null, - "statusCheckVerify": false, - "suppressNotifications": Array [ - "deprecationWarningIssues", - ], - "timezone": null, - "unpublishSafe": false, - "updateLockFiles": true, - "updateNotScheduled": true, - "versionScheme": "docker", - "vulnerabilityAlerts": Object { - "commitMessageSuffix": "[SECURITY]", - "enabled": true, - "groupName": null, - "masterIssueApproval": false, - "rangeStrategy": "update-lockfile", - "schedule": Array [], - }, - "warnings": Array [], - "yarnrc": null, - }, - Object { - "assignees": Array [], - "automerge": false, - "automergeComment": "automergeComment", - "automergeType": "pr", - "azureAutoComplete": false, - "azureWorkItemId": 0, - "baseDir": null, - "bbUseDefaultReviewers": true, - "binarySource": "bundled", - "branchName": "{{{branchPrefix}}}{{{managerBranchPrefix}}}{{{branchTopic}}}", - "branchPrefix": "renovate/", - "branchTopic": "{{{depNameSanitized}}}-{{{newMajor}}}{{#if isPatch}}.{{{newMinor}}}{{/if}}.x{{#if isLockfileUpdate}}-lockfile{{/if}}", - "bumpVersion": null, - "cacheDir": null, - "commitBody": null, - "commitMessage": "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}", - "commitMessageAction": "Update", - "commitMessageExtra": "to v{{#if isMajor}}{{{newMajor}}}{{else}}{{{newVersion}}}{{/if}}", - "commitMessagePrefix": null, - "commitMessageSuffix": null, - "commitMessageTopic": "{{{depName}}} Docker tag", - "compatibility": Object {}, - "depName": "calico/node", - "depNameSanitized": "calico-node", - "dryRun": false, - "errors": Array [], - "excludeCommitPaths": Array [], - "gitAuthor": null, - "gitPrivateKey": null, - "group": Object { - "branchTopic": "{{{groupSlug}}}", - "commitMessageTopic": "{{{groupName}}} Docker tags", - }, - "groupName": null, - "groupSlug": null, - "ignoreNpmrcFile": false, - "labels": Array [], - "language": "docker", - "lazyGrouping": true, - "manager": "dockerfile", - "managerBranchPrefix": "docker-", - "masterIssue": false, - "masterIssueApproval": false, - "masterIssueAutoclose": false, - "masterIssueTitle": "Update Dependencies (Renovate Bot)", - "newValue": "3.2.0", - "npmToken": null, - "npmrc": null, - "packageFile": "Dockerfile", - "persistRepoData": false, - "platform": "github", - "postUpdateOptions": Array [], - "prBodyColumns": Array [ - "Package", - "Type", - "Update", - "Change", - "References", - ], - "prBodyDefinitions": Object { - "Change": "\`{{{displayFrom}}}\` -> \`{{{displayTo}}}\`", - "Current value": "{{{currentValue}}}", - "New value": "{{{newValue}}}", - "Package": "{{{depName}}}", - "Package file": "{{{packageFile}}}", - "References": "{{{references}}}", - "Type": "{{{depType}}}", - "Update": "{{{updateType}}}", - }, - "prBodyNotes": Array [], - "prConcurrentLimit": 0, - "prCreation": "immediate", - "prHourlyLimit": 0, - "prNotPendingHours": 25, - "prTitle": null, - "printConfig": false, - "rangeStrategy": "replace", - "rebaseLabel": "rebase", - "rebaseStalePrs": null, - "recreateClosed": false, - "registryUrls": null, - "requiredStatusChecks": Array [], - "reviewers": Array [], - "rollbackPrs": false, - "schedule": "at any time", - "semanticCommitScope": "deps", - "semanticCommitType": "chore", - "semanticCommits": null, - "separateMajorMinor": true, - "separateMinorPatch": false, - "skipInstalls": null, - "statusCheckVerify": false, - "suppressNotifications": Array [ - "deprecationWarningIssues", - ], - "timezone": null, - "unpublishSafe": false, - "updateLockFiles": true, - "updateNotScheduled": true, - "versionScheme": "docker", - "vulnerabilityAlerts": Object { - "commitMessageSuffix": "[SECURITY]", - "enabled": true, - "groupName": null, - "masterIssueApproval": false, - "rangeStrategy": "update-lockfile", - "schedule": Array [], - }, - "warnings": Array [], - "yarnrc": null, - }, -] -`; diff --git a/test/workers/repository/updates/flatten.spec.js b/test/workers/repository/updates/flatten.spec.js index a6f07ce472887712e13e2e5030ee81847647a85e..b118a958a0c076a1de77fc4d1190937f3c39b66e 100644 --- a/test/workers/repository/updates/flatten.spec.js +++ b/test/workers/repository/updates/flatten.spec.js @@ -72,7 +72,6 @@ describe('workers/repository/updates/flatten', () => { ], }; const res = await flattenUpdates(config, packageFiles); - expect(res).toMatchSnapshot(); expect(res).toHaveLength(9); expect( res.filter(r => r.updateType === 'lockFileMaintenance')