2019-05-24 13:01:07 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`applyPackageRules() applies 1`] = `
|
|
|
|
Object {
|
|
|
|
"currentValue": "1.0.0",
|
|
|
|
"depName": "a",
|
|
|
|
"isBump": true,
|
2021-01-29 10:43:42 +00:00
|
|
|
"matchUpdateTypes": Array [
|
|
|
|
"bump",
|
|
|
|
],
|
2019-05-24 13:01:07 +00:00
|
|
|
"packageRules": Array [
|
|
|
|
Object {
|
|
|
|
"matchCurrentVersion": "<= 2.0.0",
|
2021-01-29 10:43:42 +00:00
|
|
|
"matchPackagePatterns": Array [
|
2019-05-24 13:01:07 +00:00
|
|
|
"*",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"matchCurrentVersion": "<= 2.0.0",
|
2021-01-29 10:43:42 +00:00
|
|
|
"matchPackageNames": Array [
|
2019-05-24 13:01:07 +00:00
|
|
|
"b",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"excludePackagePatterns": Array [
|
|
|
|
"*",
|
|
|
|
],
|
2021-01-29 10:43:42 +00:00
|
|
|
"matchPackageNames": Array [
|
2019-05-24 13:01:07 +00:00
|
|
|
"b",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
Object {
|
2021-01-29 10:43:42 +00:00
|
|
|
"matchUpdateTypes": Array [
|
2019-05-24 13:01:07 +00:00
|
|
|
"bump",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"excludePackageNames": Array [
|
|
|
|
"a",
|
|
|
|
],
|
2021-01-29 10:43:42 +00:00
|
|
|
"matchPackageNames": Array [
|
2019-05-24 13:01:07 +00:00
|
|
|
"b",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
Object {
|
|
|
|
"matchCurrentVersion": "<= 2.0.0",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`applyPackageRules() empty rules 1`] = `
|
|
|
|
Object {
|
|
|
|
"foo": "bar",
|
|
|
|
"packageRules": null,
|
|
|
|
}
|
|
|
|
`;
|