|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`Test collate-errors: left-pad, lodash, and zfs apply 1`] = ` |
| 4 | +"SNAPSHOT: left-pad, lodash, and zfs apply |
| 5 | +patch-package 0.0.0 |
| 6 | +Applying patches... |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | +END SNAPSHOT" |
| 11 | +`; |
| 12 | + |
| 13 | +exports[`Test collate-errors: underscore does not apply, left-pad warns 1`] = ` |
| 14 | +"SNAPSHOT: underscore does not apply, left-pad warns |
| 15 | +
|
| 16 | +Warning: patch-package detected a patch file version mismatch |
| 17 | +
|
| 18 | + Don't worry! This is probably fine. The patch was still applied |
| 19 | + successfully. Here's the deets: |
| 20 | +
|
| 21 | + Patch file created for |
| 22 | +
|
| 23 | + |
| 24 | +
|
| 25 | + applied to |
| 26 | +
|
| 27 | + |
| 28 | + |
| 29 | + At path |
| 30 | + |
| 31 | + node_modules/left-pad |
| 32 | +
|
| 33 | + This warning is just to give you a heads-up. There is a small chance of |
| 34 | + breakage even though the patch was applied successfully. Make sure the package |
| 35 | + still behaves like you expect (you wrote tests, right?) and then run |
| 36 | +
|
| 37 | + patch-package left-pad |
| 38 | +
|
| 39 | + to update the version in the patch file name and make this warning go away. |
| 40 | +
|
| 41 | +
|
| 42 | +**ERROR** Failed to apply patch for package underscore at path |
| 43 | + |
| 44 | + node_modules/underscore |
| 45 | +
|
| 46 | + This error was caused because underscore has changed since you |
| 47 | + made the patch file for it. This introduced conflicts with your patch, |
| 48 | + just like a merge conflict in Git when separate incompatible changes are |
| 49 | + made to the same piece of code. |
| 50 | +
|
| 51 | + Maybe this means your patch file is no longer necessary, in which case |
| 52 | + hooray! Just delete it! |
| 53 | +
|
| 54 | + Otherwise, you need to generate a new patch file. |
| 55 | +
|
| 56 | + To generate a new one, just repeat the steps you made to generate the first |
| 57 | + one. |
| 58 | +
|
| 59 | + i.e. manually make the appropriate file changes, then run |
| 60 | +
|
| 61 | + patch-package underscore |
| 62 | +
|
| 63 | + Info: |
| 64 | + Patch file: patches/underscore+1.0.3.patch |
| 65 | + Patch was made for version: 1.0.3 |
| 66 | + Installed version: 1.12.0 |
| 67 | +
|
| 68 | +--- |
| 69 | +patch-package finished with 1 warning(s), 1 error(s). |
| 70 | +END SNAPSHOT" |
| 71 | +`; |
0 commit comments