Skip to content

Commit 3373601

Browse files
committed
update snapshots: add patch file header comments
1 parent 3ccbfb8 commit 3373601

File tree

9 files changed

+104
-0
lines changed

9 files changed

+104
-0
lines changed

integration-tests/delete-scripts/__snapshots__/delete-scripts.test.ts.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
exports[`Test delete-scripts: a patch file got produced 1`] = `
44
"SNAPSHOT: a patch file got produced
5+
# generated by patch-package 0.0.0 on 1980-01-01 00:00:00
6+
#
7+
# command:
8+
# npx patch-package left-pad
9+
#
10+
# declared package:
11+
# left-pad: file:/mocked/path/to/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e
12+
#
513
diff --git a/node_modules/left-pad/index.js b/node_modules/left-pad/index.js
614
index e90aec3..f2b8b0a 100644
715
--- a/node_modules/left-pad/index.js

integration-tests/file-mode-changes/__snapshots__/file-mode-changes.test.ts.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
exports[`Test file-mode-changes: the patch file 1`] = `
44
"SNAPSHOT: the patch file
5+
# generated by patch-package 0.0.0 on 1980-01-01 00:00:00
6+
#
7+
# command:
8+
# npx patch-package prettier
9+
#
10+
# declared package:
11+
# prettier: file:/mocked/path/to/prettier-1.16.0.tgz#104dd25f5ee3d0c9d0a6ce4bb40ced8481d51219
12+
#
513
diff --git a/node_modules/prettier/bin-prettier.js b/node_modules/prettier/bin-prettier.js
614
old mode 100755
715
new mode 100644

integration-tests/happy-path-npm/__snapshots__/happy-path-npm.test.ts.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ END SNAPSHOT"
1717

1818
exports[`Test happy-path-npm: the patch looks like this 1`] = `
1919
"SNAPSHOT: the patch looks like this
20+
# generated by patch-package 0.0.0 on 1980-01-01 00:00:00
21+
#
22+
# command:
23+
# npx patch-package left-pad
24+
#
25+
# declared package:
26+
# left-pad: file:/mocked/path/to/left-pad-1.1.3.tgz
27+
#
2028
diff --git a/node_modules/left-pad/index.js b/node_modules/left-pad/index.js
2129
index 26f73ff..d4cc4af 100644
2230
--- a/node_modules/left-pad/index.js

integration-tests/happy-path-yarn/__snapshots__/happy-path-yarn.test.ts.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ END SNAPSHOT"
1717

1818
exports[`Test happy-path-yarn: the patch looks like this 1`] = `
1919
"SNAPSHOT: the patch looks like this
20+
# generated by patch-package 0.0.0 on 1980-01-01 00:00:00
21+
#
22+
# command:
23+
# npx patch-package left-pad
24+
#
25+
# declared package:
26+
# left-pad: file:/mocked/path/to/left-pad-1.1.3.tgz#612f61c033f3a9e08e939f1caebeea41b6f3199a
27+
#
2028
diff --git a/node_modules/left-pad/index.js b/node_modules/left-pad/index.js
2129
index 26f73ff..b083802 100644
2230
--- a/node_modules/left-pad/index.js

integration-tests/ignore-whitespace/__snapshots__/ignore-whitespace.test.ts.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ END SNAPSHOT"
99

1010
exports[`Test ignore-whitespace: line a changed 1`] = `
1111
"SNAPSHOT: line a changed
12+
# generated by patch-package 0.0.0 on 1980-01-01 00:00:00
13+
#
14+
# command:
15+
# npx patch-package alphabet
16+
#
17+
# declared package:
18+
# alphabet: file:/mocked/path/to/alphabet
19+
#
1220
diff --git a/node_modules/alphabet/index.js b/node_modules/alphabet/index.js
1321
index 7811d3b..454414b 100644
1422
--- a/node_modules/alphabet/index.js

integration-tests/ignores-scripts-when-making-patch/__snapshots__/ignores-scripts-when-making-patch.test.ts.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
exports[`Test ignores-scripts-when-making-patch: a patch file got produced 1`] = `
44
"SNAPSHOT: a patch file got produced
5+
# generated by patch-package 0.0.0 on 1980-01-01 00:00:00
6+
#
7+
# command:
8+
# npx patch-package naughty-package
9+
#
10+
# declared package:
11+
# naughty-package: file:/mocked/path/to/naughty-package
12+
#
513
diff --git a/node_modules/naughty-package/postinstall.sh b/node_modules/naughty-package/postinstall.sh
614
index 3784520..c4af29c 100755
715
--- a/node_modules/naughty-package/postinstall.sh

integration-tests/include-exclude-paths/__snapshots__/include-exclude-paths.test.ts.snap

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
exports[`Test include-exclude-paths: exclude all but flip 1`] = `
44
"SNAPSHOT: exclude all but flip
5+
# generated by patch-package 0.0.0 on 1980-01-01 00:00:00
6+
#
7+
# command:
8+
# npx patch-package lodash --exclude '^(?!.*flip)'
9+
#
10+
# declared package:
11+
# lodash: file:/mocked/path/to/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae
12+
#
513
diff --git a/node_modules/lodash/flip.js b/node_modules/lodash/flip.js
614
index c28dd78..584b377 100644
715
--- a/node_modules/lodash/flip.js
@@ -17,6 +25,14 @@ END SNAPSHOT"
1725

1826
exports[`Test include-exclude-paths: modified package.json 1`] = `
1927
"SNAPSHOT: modified package.json
28+
# generated by patch-package 0.0.0 on 1980-01-01 00:00:00
29+
#
30+
# command:
31+
# npx patch-package lodash --exclude '^$'
32+
#
33+
# declared package:
34+
# lodash: file:/mocked/path/to/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae
35+
#
2036
diff --git a/node_modules/lodash/package.json b/node_modules/lodash/package.json
2137
index 028960d..7d346f3 100644
2238
--- a/node_modules/lodash/package.json
@@ -35,6 +51,14 @@ END SNAPSHOT"
3551
3652
exports[`Test include-exclude-paths: no base files 1`] = `
3753
"SNAPSHOT: no base files
54+
# generated by patch-package 0.0.0 on 1980-01-01 00:00:00
55+
#
56+
# command:
57+
# npx patch-package lodash --exclude base
58+
#
59+
# declared package:
60+
# lodash: file:/mocked/path/to/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae
61+
#
3862
diff --git a/node_modules/lodash/flip.js b/node_modules/lodash/flip.js
3963
index c28dd78..584b377 100644
4064
--- a/node_modules/lodash/flip.js
@@ -64,6 +88,14 @@ END SNAPSHOT"
6488
6589
exports[`Test include-exclude-paths: only __.js being deleted 1`] = `
6690
"SNAPSHOT: only __.js being deleted
91+
# generated by patch-package 0.0.0 on 1980-01-01 00:00:00
92+
#
93+
# command:
94+
# npx patch-package lodash --include __
95+
#
96+
# declared package:
97+
# lodash: file:/mocked/path/to/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae
98+
#
6799
diff --git a/node_modules/lodash/fp/__.js b/node_modules/lodash/fp/__.js
68100
deleted file mode 100644
69101
index 4af98de..0000000
@@ -76,6 +108,14 @@ END SNAPSHOT"
76108
77109
exports[`Test include-exclude-paths: only base files, no clone files 1`] = `
78110
"SNAPSHOT: only base files, no clone files
111+
# generated by patch-package 0.0.0 on 1980-01-01 00:00:00
112+
#
113+
# command:
114+
# npx patch-package lodash --include base --exclude clone
115+
#
116+
# declared package:
117+
# lodash: file:/mocked/path/to/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae
118+
#
79119
diff --git a/node_modules/lodash/_baseClamp.js b/node_modules/lodash/_baseClamp.js
80120
index a1c5692..c52e38e 100644
81121
--- a/node_modules/lodash/_baseClamp.js

integration-tests/lerna-canary/__snapshots__/lerna-canary.test.ts.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ END SNAPSHOT"
2525

2626
exports[`Test lerna-canary: the patch looks like this 1`] = `
2727
"SNAPSHOT: the patch looks like this
28+
# generated by patch-package 0.0.0 on 1980-01-01 00:00:00
29+
#
30+
# command:
31+
# npx patch-package @parcel/codeframe
32+
#
33+
# declared package:
34+
# @parcel/codeframe: file:/mocked/path/to/codeframe-2.0.0-nightly.137.tgz#b8bfc2ccf223d6a26eaad193fc26c029f7e14d4f
35+
#
2836
diff --git a/node_modules/@parcel/codeframe/src/codeframe.js b/node_modules/@parcel/codeframe/src/codeframe.js
2937
index 2bf2c1c..ef0695b 100644
3038
--- a/node_modules/@parcel/codeframe/src/codeframe.js

integration-tests/nested-packages/__snapshots__/nested-packages.test.ts.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ END SNAPSHOT"
2525

2626
exports[`Test nested-packages: the patch file contents 1`] = `
2727
"SNAPSHOT: the patch file contents
28+
# generated by patch-package 0.0.0 on 1980-01-01 00:00:00
29+
#
30+
# command:
31+
# npx patch-package wrap-ansi/string-width
32+
#
33+
# declared package:
34+
# string-width: file:/mocked/path/to/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e
35+
#
2836
diff --git a/node_modules/wrap-ansi/node_modules/string-width/index.js b/node_modules/wrap-ansi/node_modules/string-width/index.js
2937
index bbc49d2..6407f49 100644
3038
--- a/node_modules/wrap-ansi/node_modules/string-width/index.js

0 commit comments

Comments
 (0)