Skip to content

Commit

Permalink
update snapshots to be ordered by time
Browse files Browse the repository at this point in the history
  • Loading branch information
ds300 committed Jul 12, 2023
1 parent f956f95 commit d5e6a0a
Show file tree
Hide file tree
Showing 24 changed files with 180 additions and 180 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Test apply-multiple-patches: patch-package fails when a patch in the sequence is invalid 1`] = `
exports[`Test apply-multiple-patches: 00: patch-package happily applies both good patches 1`] = `
"SNAPSHOT: patch-package happily applies both good patches
patch-package 0.0.0
Applying patches...
left-pad@1.3.0 (1 hello) ✔
left-pad@1.3.0 (3 world) ✔
END SNAPSHOT"
`;

exports[`Test apply-multiple-patches: 01: patch-package only applies the first patch if the second of three is invalid 1`] = `
"SNAPSHOT: patch-package only applies the first patch if the second of three is invalid
patch-package 0.0.0
Applying patches...
left-pad@1.3.0 (1 hello) ✔
END SNAPSHOT"
`;

exports[`Test apply-multiple-patches: 02: patch-package fails when a patch in the sequence is invalid 1`] = `
"SNAPSHOT: patch-package fails when a patch in the sequence is invalid
**ERROR** Failed to apply patch for package left-pad at path
Expand All @@ -27,20 +44,3 @@ exports[`Test apply-multiple-patches: patch-package fails when a patch in the se
patch-package finished with 1 error(s).
END SNAPSHOT"
`;

exports[`Test apply-multiple-patches: patch-package happily applies both good patches 1`] = `
"SNAPSHOT: patch-package happily applies both good patches
patch-package 0.0.0
Applying patches...
left-pad@1.3.0 (1 hello) ✔
left-pad@1.3.0 (3 world) ✔
END SNAPSHOT"
`;

exports[`Test apply-multiple-patches: patch-package only applies the first patch if the second of three is invalid 1`] = `
"SNAPSHOT: patch-package only applies the first patch if the second of three is invalid
patch-package 0.0.0
Applying patches...
left-pad@1.3.0 (1 hello) ✔
END SNAPSHOT"
`;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Test broken-patch-file: patch-package fails when patch file is invalid 1`] = `
exports[`Test broken-patch-file: 00: patch-package fails when patch file is invalid 1`] = `
"SNAPSHOT: patch-package fails when patch file is invalid
**ERROR** Failed to apply patch for package left-pad at path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Test collate-errors: left-pad, lodash, and zfs apply 1`] = `
exports[`Test collate-errors: 00: left-pad, lodash, and zfs apply 1`] = `
"SNAPSHOT: left-pad, lodash, and zfs apply
patch-package 0.0.0
Applying patches...
Expand All @@ -10,7 +10,7 @@ zfs@1.3.0 ✔
END SNAPSHOT"
`;

exports[`Test collate-errors: underscore does not apply, left-pad warns 1`] = `
exports[`Test collate-errors: 01: underscore does not apply, left-pad warns 1`] = `
"SNAPSHOT: underscore does not apply, left-pad warns
Warning: patch-package detected a patch file version mismatch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Test create-issue: patching left-pad prompts to submit an issue 1`] = `
exports[`Test create-issue: 00: patching left-pad prompts to submit an issue 1`] = `
"SNAPSHOT: patching left-pad prompts to submit an issue
patch-package 0.0.0
• Creating temporary folder
Expand All @@ -15,7 +15,7 @@ patch-package 0.0.0
END SNAPSHOT"
`;

exports[`Test create-issue: patching left-pad with --create-issue opens the url 1`] = `
exports[`Test create-issue: 01: patching left-pad with --create-issue opens the url 1`] = `
"SNAPSHOT: patching left-pad with --create-issue opens the url
patch-package 0.0.0
• Creating temporary folder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Test delete-scripts: a patch file got produced 1`] = `
exports[`Test delete-scripts: 00: a patch file got produced 1`] = `
"SNAPSHOT: a patch file got produced
diff --git a/node_modules/left-pad/index.js b/node_modules/left-pad/index.js
index e90aec3..f2b8b0a 100644
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Test dev-only-patches: fake-package should be skipped 1`] = `
exports[`Test dev-only-patches: 00: patch-package happily ignores slash on CI because it's a dev dep 1`] = `
"SNAPSHOT: patch-package happily ignores slash on CI because it's a dev dep
patch-package 0.0.0
Applying patches...
left-pad@1.3.0 ✔
Skipping dev-only slash@3.0.0 ✔
END SNAPSHOT"
`;

exports[`Test dev-only-patches: 01: fake-package should be skipped 1`] = `
"SNAPSHOT: fake-package should be skipped
patch-package 0.0.0
Applying patches...
Expand All @@ -10,7 +19,7 @@ Skipping dev-only slash@3.0.0 ✔
END SNAPSHOT"
`;

exports[`Test dev-only-patches: patch-package fails to find fake-package 1`] = `
exports[`Test dev-only-patches: 02: patch-package fails to find fake-package 1`] = `
"SNAPSHOT: patch-package fails to find fake-package
Error: Patch file found for package fake-package which is not present at node_modules/fake-package
Expand All @@ -22,12 +31,3 @@ Error: Patch file found for package fake-package which is not present at node_mo
patch-package finished with 1 error(s).
END SNAPSHOT"
`;

exports[`Test dev-only-patches: patch-package happily ignores slash on CI because it's a dev dep 1`] = `
"SNAPSHOT: patch-package happily ignores slash on CI because it's a dev dep
patch-package 0.0.0
Applying patches...
left-pad@1.3.0 ✔
Skipping dev-only slash@3.0.0 ✔
END SNAPSHOT"
`;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Test error-on-fail: at dev time patch-package fails but returns 0 1`] = `
exports[`Test error-on-fail: 00: at dev time patch-package fails but returns 0 1`] = `
"SNAPSHOT: at dev time patch-package fails but returns 0
**ERROR** Failed to apply patch for package left-pad at path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Test error-on-warn: at dev time patch-package warns but returns 0 1`] = `
exports[`Test error-on-warn: 00: at dev time patch-package warns but returns 0 1`] = `
"SNAPSHOT: at dev time patch-package warns but returns 0
Warning: patch-package detected a patch file version mismatch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Test fails-when-no-package: no package present failure 1`] = `
exports[`Test fails-when-no-package: 00: no package present failure 1`] = `
"SNAPSHOT: no package present failure
Error: Patch file found for package left-pad which is not present at node_modules/left-pad
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Test file-mode-changes: the patch file 1`] = `
exports[`Test file-mode-changes: 00: the patch file 1`] = `
"SNAPSHOT: the patch file
diff --git a/node_modules/prettier/bin-prettier.js b/node_modules/prettier/bin-prettier.js
old mode 100755
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Test happy-path-npm: making patch 1`] = `
exports[`Test happy-path-npm: 00: making patch 1`] = `
"SNAPSHOT: making patch
patch-package 0.0.0
• Creating temporary folder
Expand All @@ -15,7 +15,7 @@ patch-package 0.0.0
END SNAPSHOT"
`;

exports[`Test happy-path-npm: the patch looks like this 1`] = `
exports[`Test happy-path-npm: 01: the patch looks like this 1`] = `
"SNAPSHOT: the patch looks like this
diff --git a/node_modules/left-pad/index.js b/node_modules/left-pad/index.js
index 26f73ff..d4cc4af 100644
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Test happy-path-yarn: making patch 1`] = `
exports[`Test happy-path-yarn: 00: making patch 1`] = `
"SNAPSHOT: making patch
patch-package 0.0.0
• Creating temporary folder
Expand All @@ -15,7 +15,7 @@ patch-package 0.0.0
END SNAPSHOT"
`;

exports[`Test happy-path-yarn: the patch looks like this 1`] = `
exports[`Test happy-path-yarn: 01: the patch looks like this 1`] = `
"SNAPSHOT: the patch looks like this
diff --git a/node_modules/left-pad/index.js b/node_modules/left-pad/index.js
index 26f73ff..b083802 100644
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Test ignore-whitespace: empty changeset when adding whitespace 1`] = `
"SNAPSHOT: empty changeset when adding whitespace
⁉️ Not creating patch file for package 'alphabet'
⁉️ There don't appear to be any changes.
END SNAPSHOT"
`;

exports[`Test ignore-whitespace: line a changed 1`] = `
exports[`Test ignore-whitespace: 00: line a changed 1`] = `
"SNAPSHOT: line a changed
diff --git a/node_modules/alphabet/index.js b/node_modules/alphabet/index.js
index 7811d3b..454414b 100644
Expand All @@ -21,3 +14,10 @@ index 7811d3b..454414b 100644
// d
END SNAPSHOT"
`;

exports[`Test ignore-whitespace: 01: empty changeset when adding whitespace 1`] = `
"SNAPSHOT: empty changeset when adding whitespace
⁉️ Not creating patch file for package 'alphabet'
⁉️ There don't appear to be any changes.
END SNAPSHOT"
`;
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Test ignores-scripts-when-making-patch: a patch file got produced 1`] = `
exports[`Test ignores-scripts-when-making-patch: 00: the patch creation output should look normal 1`] = `
"SNAPSHOT: the patch creation output should look normal
patch-package 0.0.0
• Creating temporary folder
• Installing naughty-package@1.0.0 with yarn
• Diffing your files with clean files
✔ Created file patches/naughty-package+1.0.0.patch
END SNAPSHOT"
`;

exports[`Test ignores-scripts-when-making-patch: 01: a patch file got produced 1`] = `
"SNAPSHOT: a patch file got produced
diff --git a/node_modules/naughty-package/postinstall.sh b/node_modules/naughty-package/postinstall.sh
index 3784520..c4af29c 100755
Expand All @@ -15,18 +26,7 @@ index 3784520..c4af29c 100755
END SNAPSHOT"
`;

exports[`Test ignores-scripts-when-making-patch: the patch creation output should look normal 1`] = `
"SNAPSHOT: the patch creation output should look normal
patch-package 0.0.0
• Creating temporary folder
• Installing naughty-package@1.0.0 with yarn
• Diffing your files with clean files
✔ Created file patches/naughty-package+1.0.0.patch
END SNAPSHOT"
`;

exports[`Test ignores-scripts-when-making-patch: there should be no stderr 1`] = `
exports[`Test ignores-scripts-when-making-patch: 02: there should be no stderr 1`] = `
"SNAPSHOT: there should be no stderr
END SNAPSHOT"
`;
Original file line number Diff line number Diff line change
@@ -1,39 +1,18 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Test include-exclude-paths: exclude all but flip 1`] = `
"SNAPSHOT: exclude all but flip
diff --git a/node_modules/lodash/flip.js b/node_modules/lodash/flip.js
index c28dd78..584b377 100644
--- a/node_modules/lodash/flip.js
+++ b/node_modules/lodash/flip.js
@@ -25,4 +25,4 @@ function flip(func) {
return createWrap(func, WRAP_FLIP_FLAG);
}
-module.exports = flip;
+module.patchPackage = flip;
END SNAPSHOT"
`;

exports[`Test include-exclude-paths: modified package.json 1`] = `
"SNAPSHOT: modified package.json
diff --git a/node_modules/lodash/package.json b/node_modules/lodash/package.json
index 028960d..7d346f3 100644
--- a/node_modules/lodash/package.json
+++ b/node_modules/lodash/package.json
@@ -1,7 +1,7 @@
{
\\"name\\": \\"lodash\\",
\\"version\\": \\"4.17.4\\",
- \\"description\\": \\"Lodash modular utilities.\\",
+ \\"patchPackageRulezLol\\": \\"Lodash modular utilities.\\",
\\"keywords\\": \\"modules, stdlib, util\\",
\\"homepage\\": \\"https://lodash.com/\\",
\\"repository\\": \\"lodash/lodash\\",
exports[`Test include-exclude-paths: 00: only __.js being deleted 1`] = `
"SNAPSHOT: only __.js being deleted
diff --git a/node_modules/lodash/fp/__.js b/node_modules/lodash/fp/__.js
deleted file mode 100644
index 4af98de..0000000
--- a/node_modules/lodash/fp/__.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./placeholder');
END SNAPSHOT"
`;

exports[`Test include-exclude-paths: no base files 1`] = `
exports[`Test include-exclude-paths: 01: no base files 1`] = `
"SNAPSHOT: no base files
diff --git a/node_modules/lodash/flip.js b/node_modules/lodash/flip.js
index c28dd78..584b377 100644
Expand Down Expand Up @@ -62,19 +41,7 @@ index 0000000..3b2aed8
END SNAPSHOT"
`;

exports[`Test include-exclude-paths: only __.js being deleted 1`] = `
"SNAPSHOT: only __.js being deleted
diff --git a/node_modules/lodash/fp/__.js b/node_modules/lodash/fp/__.js
deleted file mode 100644
index 4af98de..0000000
--- a/node_modules/lodash/fp/__.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./placeholder');
END SNAPSHOT"
`;
exports[`Test include-exclude-paths: only base files, no clone files 1`] = `
exports[`Test include-exclude-paths: 02: only base files, no clone files 1`] = `
"SNAPSHOT: only base files, no clone files
diff --git a/node_modules/lodash/_baseClamp.js b/node_modules/lodash/_baseClamp.js
index a1c5692..c52e38e 100644
Expand All @@ -88,3 +55,36 @@ index a1c5692..c52e38e 100644
+module.patchPackage = baseClamp;
END SNAPSHOT"
`;

exports[`Test include-exclude-paths: 03: exclude all but flip 1`] = `
"SNAPSHOT: exclude all but flip
diff --git a/node_modules/lodash/flip.js b/node_modules/lodash/flip.js
index c28dd78..584b377 100644
--- a/node_modules/lodash/flip.js
+++ b/node_modules/lodash/flip.js
@@ -25,4 +25,4 @@ function flip(func) {
return createWrap(func, WRAP_FLIP_FLAG);
}
-module.exports = flip;
+module.patchPackage = flip;
END SNAPSHOT"
`;

exports[`Test include-exclude-paths: 04: modified package.json 1`] = `
"SNAPSHOT: modified package.json
diff --git a/node_modules/lodash/package.json b/node_modules/lodash/package.json
index 028960d..7d346f3 100644
--- a/node_modules/lodash/package.json
+++ b/node_modules/lodash/package.json
@@ -1,7 +1,7 @@
{
\\"name\\": \\"lodash\\",
\\"version\\": \\"4.17.4\\",
- \\"description\\": \\"Lodash modular utilities.\\",
+ \\"patchPackageRulezLol\\": \\"Lodash modular utilities.\\",
\\"keywords\\": \\"modules, stdlib, util\\",
\\"homepage\\": \\"https://lodash.com/\\",
\\"repository\\": \\"lodash/lodash\\",
END SNAPSHOT"
`;
Loading

0 comments on commit d5e6a0a

Please sign in to comment.