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
+5-28Lines changed: 5 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -12,35 +12,29 @@ Array [
12
12
`
13
13
14
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`]=`
15
-
Array [
16
-
"Deleted incorrect \\"bundledDependencies\\"",
17
-
]
15
+
Array []
18
16
`
19
17
20
18
exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundleDependencies object > must match snapshot 1`]=`
21
19
Array [
22
-
"Deleted incorrect \\"bundledDependencies\\"",
23
20
"\\"bundleDependencies\\" was changed from an object to an array",
24
21
]
25
22
`
26
23
27
24
exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundleDependencies: false > must match snapshot 1`]=`
28
25
Array [
29
-
"Deleted incorrect \\"bundledDependencies\\"",
30
26
"\\"bundleDependencies\\" was changed from \\"false\\" to \\"[]\\"",
31
27
]
32
28
`
33
29
34
30
exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundleDependencies: true > must match snapshot 1`]=`
35
31
Array [
36
-
"Deleted incorrect \\"bundledDependencies\\"",
37
32
"\\"bundleDependencies\\" was auto-populated from \\"dependencies\\"",
38
33
]
39
34
`
40
35
41
36
exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundleDependencies: true with no deps > must match snapshot 1`]=`
42
37
Array [
43
-
"Deleted incorrect \\"bundledDependencies\\"",
44
38
"\\"bundleDependencies\\" was auto-populated from \\"dependencies\\"",
45
39
]
46
40
`
@@ -54,84 +48,68 @@ Array [
54
48
55
49
exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up scripts delete non-object scripts > must match snapshot 1`]=`
56
50
Array [
57
-
"Deleted incorrect \\"bundledDependencies\\"",
58
51
"Removed invalid \\"scripts\\"",
59
52
]
60
53
`
61
54
62
55
exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up scripts delete non-string script targets > must match snapshot 1`]=`
63
56
Array [
64
-
"Deleted incorrect \\"bundledDependencies\\"",
65
57
"Invalid scripts.\\"bar\\" was removed",
66
58
"Invalid scripts.\\"baz\\" was removed",
67
59
]
68
60
`
69
61
70
62
exports[`test/normalize.js TAP @npmcli/package-json - with changes cleanup bins delete string bin when no name > must match snapshot 1`]=`
71
-
Array [
72
-
"Deleted incorrect \\"bundledDependencies\\"",
73
-
]
63
+
Array []
74
64
`
75
65
76
66
exports[`test/normalize.js TAP @npmcli/package-json - with changes cleanup bins handle string when a name is set > must match snapshot 1`]=`
77
67
Array [
78
-
"Deleted incorrect \\"bundledDependencies\\"",
79
68
"\\"bin\\" was converted to an object",
80
69
]
81
70
`
82
71
83
72
exports[`test/normalize.js TAP @npmcli/package-json - with changes cleanup bins remove non-object bin > must match snapshot 1`]=`
84
-
Array [
85
-
"Deleted incorrect \\"bundledDependencies\\"",
86
-
]
73
+
Array []
87
74
`
88
75
89
76
exports[`test/normalize.js TAP @npmcli/package-json - with changes cleanup bins remove non-string bin values > must match snapshot 1`]=`
90
77
Array [
91
-
"Deleted incorrect \\"bundledDependencies\\"",
92
78
"removed invalid \\"bin[y]\\"",
93
79
"removed invalid \\"bin[z]\\"",
94
80
]
95
81
`
96
82
97
83
exports[`test/normalize.js TAP @npmcli/package-json - with changes convert funding string to object > must match snapshot 1`]=`
98
84
Array [
99
-
"Deleted incorrect \\"bundledDependencies\\"",
100
85
"\\"funding\\" was changed to an object with a url attribute",
101
86
]
102
87
`
103
88
104
89
exports[`test/normalize.js TAP @npmcli/package-json - with changes dedupe optional deps out of regular deps choose optional deps in conflict, leaving populated dependencies > must match snapshot 1`]=`
105
90
Array [
106
-
"Deleted incorrect \\"bundledDependencies\\"",
107
91
"optionalDependencies.\\"whowins\\" was removed",
108
92
]
109
93
`
110
94
111
95
exports[`test/normalize.js TAP @npmcli/package-json - with changes dedupe optional deps out of regular deps choose optional deps in conflict, removing empty dependencies > must match snapshot 1`]=`
112
96
Array [
113
-
"Deleted incorrect \\"bundledDependencies\\"",
114
97
"optionalDependencies.\\"whowins\\" was removed",
115
98
"Empty \\"optionalDependencies\\" was removed",
116
99
]
117
100
`
118
101
119
102
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`]=`
120
-
Array [
121
-
"Deleted incorrect \\"bundledDependencies\\"",
122
-
]
103
+
Array []
123
104
`
124
105
125
106
exports[`test/normalize.js TAP @npmcli/package-json - with changes normalize bin > must match snapshot 1`]=`
126
-
Array [
127
-
"Deleted incorrect \\"bundledDependencies\\"",
128
-
]
107
+
Array []
129
108
`
130
109
131
110
exports[`test/normalize.js TAP @npmcli/package-json - with changes set _id if name and version set > must match snapshot 1`]=`
0 commit comments