diff --git a/lib/modules/manager/npm/update/locked-dependency/yarn-lock/replace.spec.ts b/lib/modules/manager/npm/update/locked-dependency/yarn-lock/replace.spec.ts index 2145c20d1ec293d116b9e290a6f5c5b084fec0c9..a23c334d81a8dbe117b515786d7923a9f23aae4e 100644 --- a/lib/modules/manager/npm/update/locked-dependency/yarn-lock/replace.spec.ts +++ b/lib/modules/manager/npm/update/locked-dependency/yarn-lock/replace.spec.ts @@ -32,7 +32,7 @@ describe('modules/manager/npm/update/locked-dependency/yarn-lock/replace', () => expect(addedSections).toHaveLength(1); expect(removedSections).toHaveLength(1); expect(addedSections[0].value).toMatchInlineSnapshot(` - " version: \\"0.2.5\\" + " version \\"0.2.5\\" " `); expect(removedSections[0].value).toMatchInlineSnapshot(` @@ -57,7 +57,7 @@ describe('modules/manager/npm/update/locked-dependency/yarn-lock/replace', () => expect(addedSections).toHaveLength(1); expect(removedSections).toHaveLength(1); expect(addedSections[0].value).toMatchInlineSnapshot(` - " version: \\"4.4.0\\" + " version \\"4.4.0\\" " `); expect(removedSections[0].value).toMatchInlineSnapshot(` @@ -84,7 +84,7 @@ describe('modules/manager/npm/update/locked-dependency/yarn-lock/replace', () => expect(removedSections).toHaveLength(1); expect(addedSections[0].value).toMatchInlineSnapshot(` "express@4.4.0: - version: \\"4.4.0\\" + version \\"4.4.0\\" " `); expect(removedSections[0].value).toMatchInlineSnapshot(` @@ -110,7 +110,7 @@ describe('modules/manager/npm/update/locked-dependency/yarn-lock/replace', () => expect(addedSections).toHaveLength(1); expect(removedSections).toHaveLength(1); expect(addedSections[0].value).toMatchInlineSnapshot(` - " version: \\"2.2.0\\" + " version \\"2.2.0\\" " `); expect(removedSections[0].value).toMatchInlineSnapshot(` @@ -136,7 +136,7 @@ describe('modules/manager/npm/update/locked-dependency/yarn-lock/replace', () => expect(addedSections).toHaveLength(1); expect(removedSections).toHaveLength(1); expect(addedSections[0].value).toMatchInlineSnapshot(` - " version: \\"0.48.1\\" + " version \\"0.48.1\\" " `); expect(removedSections[0].value).toMatchInlineSnapshot(` diff --git a/lib/modules/manager/npm/update/locked-dependency/yarn-lock/replace.ts b/lib/modules/manager/npm/update/locked-dependency/yarn-lock/replace.ts index 08f1046722b049944d2b788357692da4186829e5..b97e12b020b122d570469792135d6888c6974205 100644 --- a/lib/modules/manager/npm/update/locked-dependency/yarn-lock/replace.ts +++ b/lib/modules/manager/npm/update/locked-dependency/yarn-lock/replace.ts @@ -35,6 +35,6 @@ export function replaceConstraintVersion( } return lockFileContent.replace( regEx(matchString), - `${constraintLine} version: "${newVersion}"\n$5` + `${constraintLine} version "${newVersion}"\n$5` ); }