renovate/lib/util/__snapshots__/package-rules.spec.ts.snap

57 lines
1,000 B
Text

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`util/package-rules 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[`util/package-rules empty rules 1`] = `
Object {
"foo": "bar",
"packageRules": null,
}
`;