renovate/lib/util/__snapshots__/package-rules.spec.ts.snap
2021-01-29 11:43:42 +01:00

57 lines
1,002 B
Text

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`applyPackageRules() applies 1`] = `
Object {
"currentValue": "1.0.0",
"depName": "a",
"isBump": true,
"matchUpdateTypes": Array [
"bump",
],
"packageRules": Array [
Object {
"matchCurrentVersion": "<= 2.0.0",
"matchPackagePatterns": Array [
"*",
],
},
Object {
"matchCurrentVersion": "<= 2.0.0",
"matchPackageNames": Array [
"b",
],
},
Object {
"excludePackagePatterns": Array [
"*",
],
"matchPackageNames": Array [
"b",
],
},
Object {
"matchUpdateTypes": Array [
"bump",
],
},
Object {
"excludePackageNames": Array [
"a",
],
"matchPackageNames": Array [
"b",
],
},
Object {
"matchCurrentVersion": "<= 2.0.0",
},
],
}
`;
exports[`applyPackageRules() empty rules 1`] = `
Object {
"foo": "bar",
"packageRules": null,
}
`;