You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tap-snapshots/test/normalize.js.test.cjs
-18Lines changed: 0 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -8,54 +8,47 @@
8
8
exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies change name if bundleDependencies is not present > must match snapshot 1`]=`
9
9
Array [
10
10
"Deleted incorrect \\"bundledDependencies\\"",
11
-
"Removed invalid \\"scripts\\"",
12
11
]
13
12
`
14
13
15
14
exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies dont array-ify if its an array already > must match snapshot 1`]=`
16
15
Array [
17
16
"Deleted incorrect \\"bundledDependencies\\"",
18
-
"Removed invalid \\"scripts\\"",
19
17
]
20
18
`
21
19
22
20
exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundleDependencies object > must match snapshot 1`]=`
23
21
Array [
24
22
"Deleted incorrect \\"bundledDependencies\\"",
25
23
"\\"bundleDependencies\\" was changed from an object to an array",
26
-
"Removed invalid \\"scripts\\"",
27
24
]
28
25
`
29
26
30
27
exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundleDependencies: false > must match snapshot 1`]=`
31
28
Array [
32
29
"Deleted incorrect \\"bundledDependencies\\"",
33
30
"\\"bundleDependencies\\" was changed from \\"false\\" to \\"[]\\"",
34
-
"Removed invalid \\"scripts\\"",
35
31
]
36
32
`
37
33
38
34
exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundleDependencies: true > must match snapshot 1`]=`
39
35
Array [
40
36
"Deleted incorrect \\"bundledDependencies\\"",
41
37
"\\"bundleDependencies\\" was auto-populated from \\"dependencies\\"",
42
-
"Removed invalid \\"scripts\\"",
43
38
]
44
39
`
45
40
46
41
exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundleDependencies: true with no deps > must match snapshot 1`]=`
47
42
Array [
48
43
"Deleted incorrect \\"bundledDependencies\\"",
49
44
"\\"bundleDependencies\\" was auto-populated from \\"dependencies\\"",
50
-
"Removed invalid \\"scripts\\"",
51
45
]
52
46
`
53
47
54
48
exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundledDependencies: true > must match snapshot 1`]=`
55
49
Array [
56
50
"Deleted incorrect \\"bundledDependencies\\"",
57
51
"\\"bundleDependencies\\" was auto-populated from \\"dependencies\\"",
58
-
"Removed invalid \\"scripts\\"",
59
52
]
60
53
`
61
54
@@ -77,29 +70,25 @@ Array [
77
70
exports[`test/normalize.js TAP @npmcli/package-json - with changes cleanup bins delete string bin when no name > must match snapshot 1`]=`
78
71
Array [
79
72
"Deleted incorrect \\"bundledDependencies\\"",
80
-
"Removed invalid \\"scripts\\"",
81
73
]
82
74
`
83
75
84
76
exports[`test/normalize.js TAP @npmcli/package-json - with changes cleanup bins handle string when a name is set > must match snapshot 1`]=`
85
77
Array [
86
78
"Deleted incorrect \\"bundledDependencies\\"",
87
-
"Removed invalid \\"scripts\\"",
88
79
"\\"bin\\" was converted to an object",
89
80
]
90
81
`
91
82
92
83
exports[`test/normalize.js TAP @npmcli/package-json - with changes cleanup bins remove non-object bin > must match snapshot 1`]=`
93
84
Array [
94
85
"Deleted incorrect \\"bundledDependencies\\"",
95
-
"Removed invalid \\"scripts\\"",
96
86
]
97
87
`
98
88
99
89
exports[`test/normalize.js TAP @npmcli/package-json - with changes cleanup bins remove non-string bin values > must match snapshot 1`]=`
100
90
Array [
101
91
"Deleted incorrect \\"bundledDependencies\\"",
102
-
"Removed invalid \\"scripts\\"",
103
92
"removed invalid \\"bin[y]\\"",
104
93
"removed invalid \\"bin[z]\\"",
105
94
]
@@ -108,7 +97,6 @@ Array [
108
97
exports[`test/normalize.js TAP @npmcli/package-json - with changes convert funding string to object > must match snapshot 1`]=`
109
98
Array [
110
99
"Deleted incorrect \\"bundledDependencies\\"",
111
-
"Removed invalid \\"scripts\\"",
112
100
"\\"funding\\" was changed to an object with a url attribute",
113
101
]
114
102
`
@@ -117,7 +105,6 @@ exports[`test/normalize.js TAP @npmcli/package-json - with changes dedupe option
117
105
Array [
118
106
"Deleted incorrect \\"bundledDependencies\\"",
119
107
"optionalDependencies.\\"whowins\\" was removed",
120
-
"Removed invalid \\"scripts\\"",
121
108
]
122
109
`
123
110
@@ -126,29 +113,25 @@ Array [
126
113
"Deleted incorrect \\"bundledDependencies\\"",
127
114
"optionalDependencies.\\"whowins\\" was removed",
128
115
"Empty \\"optionalDependencies\\" was removed",
129
-
"Removed invalid \\"scripts\\"",
130
116
]
131
117
`
132
118
133
119
exports[`test/normalize.js TAP @npmcli/package-json - with changes dedupe optional deps out of regular deps do not create regular deps if only optional specified > must match snapshot 1`]=`
134
120
Array [
135
121
"Deleted incorrect \\"bundledDependencies\\"",
136
-
"Removed invalid \\"scripts\\"",
137
122
]
138
123
`
139
124
140
125
exports[`test/normalize.js TAP @npmcli/package-json - with changes normalize bin > must match snapshot 1`]=`
141
126
Array [
142
127
"Deleted incorrect \\"bundledDependencies\\"",
143
-
"Removed invalid \\"scripts\\"",
144
128
]
145
129
`
146
130
147
131
exports[`test/normalize.js TAP @npmcli/package-json - with changes set _id if name and version set > must match snapshot 1`]=`
0 commit comments