0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-05-13 08:01:49 +00:00
renovatebot_renovate/lib/modules/manager/nuget/__snapshots__/extract.spec.ts.snap
Rhys Arkins 58e448281d
feat(nuget): extract full ranges (#35343)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-04-23 10:12:34 +00:00

296 lines
6.4 KiB
Text

// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`modules/manager/nuget/extract > extractPackageFile() > extracts all dependencies 1`] = `
[
{
"currentValue": "1.0.0",
"datasource": "nuget",
"depName": "My.Package",
"depType": "nuget",
},
{
"currentValue": "1.0.0",
"datasource": "nuget",
"depName": "Microsoft.VisualStudio.Web.CodeGeneration.Tools",
"depType": "nuget",
},
{
"currentValue": undefined,
"datasource": "nuget",
"depName": "NotUpdatable3",
"depType": "nuget",
"skipReason": "invalid-version",
},
{
"currentValue": "[1.2.3, 3.2.1)",
"datasource": "nuget",
"depName": "NotUpdatable3",
"depType": "nuget",
},
{
"currentValue": "[1.2.3, 3.2.1]",
"datasource": "nuget",
"depName": "NotUpdatable3",
"depType": "nuget",
},
{
"currentValue": "(1.2.3, 3.2.1)",
"datasource": "nuget",
"depName": "NotUpdatable3",
"depType": "nuget",
},
{
"currentValue": "(1.2.3,)",
"datasource": "nuget",
"depName": "NotUpdatable2",
"depType": "nuget",
},
{
"currentValue": "[,1.2.3)",
"datasource": "nuget",
"depName": "NotUpdatable1",
"depType": "nuget",
},
{
"currentValue": "[1.2.3,)",
"datasource": "nuget",
"depName": "Range3",
"depType": "nuget",
},
{
"currentValue": "[1.2.3,]",
"datasource": "nuget",
"depName": "Range2",
"depType": "nuget",
},
{
"currentValue": "[1.2.3]",
"datasource": "nuget",
"depName": "Range1",
"depType": "nuget",
},
{
"currentValue": "3.1.0.5",
"datasource": "nuget",
"depName": "Stateless",
"depType": "nuget",
},
{
"currentValue": "2.1.0",
"datasource": "nuget",
"depName": "Serilog.Sinks.Literate",
"depType": "nuget",
},
{
"currentValue": "1.4.0",
"datasource": "nuget",
"depName": "Serilog.Extensions.Logging",
"depType": "nuget",
},
{
"currentValue": "2.4.0",
"datasource": "nuget",
"depName": "Serilog",
"depType": "nuget",
},
{
"currentValue": "10.0.2",
"datasource": "nuget",
"depName": "Newtonsoft.Json",
"depType": "nuget",
},
{
"currentValue": "1.1.2",
"datasource": "nuget",
"depName": "Microsoft.Extensions.Logging.Debug",
"depType": "nuget",
},
{
"currentValue": "1.1.2",
"datasource": "nuget",
"depName": "Microsoft.Extensions.Configuration.Json",
"depType": "nuget",
},
{
"currentValue": "1.1.2",
"datasource": "nuget",
"depName": "Microsoft.AspNetCore.Server.Kestrel",
"depType": "nuget",
},
{
"currentValue": "1.1.3",
"datasource": "nuget",
"depName": "Microsoft.AspNetCore.Mvc.Core",
"depType": "nuget",
},
{
"currentValue": "$(UnknownVariable)",
"datasource": "nuget",
"depName": "Microsoft.AspNetCore.Hosting",
"depType": "nuget",
"skipReason": "contains-variable",
},
{
"currentValue": "4.5.0",
"datasource": "nuget",
"depName": "Autofac.Extensions.DependencyInjection",
"depType": "nuget",
"sharedVariableName": "AutofacVersion",
},
{
"currentValue": "4.5.0",
"datasource": "nuget",
"depName": "Autofac",
"depType": "nuget",
"sharedVariableName": "AutofacVersion",
},
]
`;
exports[`modules/manager/nuget/extract > extractPackageFile() > extracts all dependencies from global packages file 1`] = `
[
{
"currentValue": "1.0.0",
"datasource": "nuget",
"depName": "Microsoft.VisualStudio.Web.CodeGeneration.Tools",
"depType": "nuget",
},
{
"currentValue": "[1.2.3, 3.2.1)",
"datasource": "nuget",
"depName": "NotUpdatable3",
"depType": "nuget",
},
{
"currentValue": "[1.2.3, 3.2.1]",
"datasource": "nuget",
"depName": "NotUpdatable3",
"depType": "nuget",
},
{
"currentValue": "(1.2.3, 3.2.1)",
"datasource": "nuget",
"depName": "NotUpdatable3",
"depType": "nuget",
},
{
"currentValue": "(1.2.3,)",
"datasource": "nuget",
"depName": "NotUpdatable2",
"depType": "nuget",
},
{
"currentValue": "[,1.2.3)",
"datasource": "nuget",
"depName": "NotUpdatable1",
"depType": "nuget",
},
{
"currentValue": "[1.2.3,)",
"datasource": "nuget",
"depName": "Range3",
"depType": "nuget",
},
{
"currentValue": "[1.2.3,]",
"datasource": "nuget",
"depName": "Range2",
"depType": "nuget",
},
{
"currentValue": "[1.2.3]",
"datasource": "nuget",
"depName": "Range1",
"depType": "nuget",
},
{
"currentValue": "3.1.0.5",
"datasource": "nuget",
"depName": "Stateless",
"depType": "nuget",
},
{
"currentValue": "2.1.0",
"datasource": "nuget",
"depName": "Serilog.Sinks.Literate",
"depType": "nuget",
},
{
"currentValue": "1.4.0",
"datasource": "nuget",
"depName": "Serilog.Extensions.Logging",
"depType": "nuget",
},
{
"currentValue": "2.4.0",
"datasource": "nuget",
"depName": "Serilog",
"depType": "nuget",
},
{
"currentValue": "10.0.2",
"datasource": "nuget",
"depName": "Newtonsoft.Json",
"depType": "nuget",
},
{
"currentValue": "1.1.2",
"datasource": "nuget",
"depName": "Microsoft.Extensions.Logging.Debug",
"depType": "nuget",
},
{
"currentValue": "1.1.2",
"datasource": "nuget",
"depName": "Microsoft.Extensions.Configuration.Json",
"depType": "nuget",
},
{
"currentValue": "1.1.2",
"datasource": "nuget",
"depName": "Microsoft.AspNetCore.Server.Kestrel",
"depType": "nuget",
},
{
"currentValue": "1.1.3",
"datasource": "nuget",
"depName": "Microsoft.AspNetCore.Mvc.Core",
"depType": "nuget",
},
{
"currentValue": "1.1.2",
"datasource": "nuget",
"depName": "Microsoft.AspNetCore.Hosting",
"depType": "nuget",
},
{
"currentValue": "4.1.0",
"datasource": "nuget",
"depName": "Autofac.Extensions.DependencyInjection",
"depType": "nuget",
},
{
"currentValue": "4.5.0",
"datasource": "nuget",
"depName": "Autofac",
"depType": "nuget",
},
{
"currentValue": "2.0.0",
"datasource": "nuget",
"depName": "Roslynator.Analyzers",
"depType": "nuget",
},
]
`;
exports[`modules/manager/nuget/extract > extractPackageFile() > extracts package version dependency 1`] = `
[
{
"currentValue": "4.5.0",
"datasource": "nuget",
"depName": "Autofac",
"depType": "nuget",
},
]
`;