@@ -69,12 +69,15 @@ Map {
69
69
const conf = expect . objectContaining ( {
70
70
tag : "latest" ,
71
71
} ) ;
72
+ const cache = expect . objectContaining ( {
73
+ otp : undefined ,
74
+ } ) ;
72
75
73
- expect ( npmDistTag . remove ) . toHaveBeenCalledWith ( "@integration/package-1@1.0.1" , "lerna-temp" , conf ) ;
74
- expect ( npmDistTag . remove ) . toHaveBeenCalledWith ( "@integration/package-2@1.0.1" , "lerna-temp" , conf ) ;
76
+ expect ( npmDistTag . remove ) . toHaveBeenCalledWith ( "@integration/package-1@1.0.1" , "lerna-temp" , conf , cache ) ;
77
+ expect ( npmDistTag . remove ) . toHaveBeenCalledWith ( "@integration/package-2@1.0.1" , "lerna-temp" , conf , cache ) ;
75
78
76
- expect ( npmDistTag . add ) . toHaveBeenCalledWith ( "@integration/package-1@1.0.1" , "CUSTOM" , conf ) ; // <--
77
- expect ( npmDistTag . add ) . toHaveBeenCalledWith ( "@integration/package-2@1.0.1" , "latest" , conf ) ;
79
+ expect ( npmDistTag . add ) . toHaveBeenCalledWith ( "@integration/package-1@1.0.1" , "CUSTOM" , conf , cache ) ; // <--
80
+ expect ( npmDistTag . add ) . toHaveBeenCalledWith ( "@integration/package-2@1.0.1" , "latest" , conf , cache ) ;
78
81
} ) ;
79
82
80
83
test ( "publish --dist-tag beta --temp-tag" , async ( ) => {
92
95
const conf = expect . objectContaining ( {
93
96
tag : "beta" ,
94
97
} ) ;
98
+ const cache = expect . objectContaining ( {
99
+ otp : undefined ,
100
+ } ) ;
95
101
96
- expect ( npmDistTag . add ) . toHaveBeenCalledWith ( "@integration/package-1@1.0.1" , "beta" , conf ) ; // <--
97
- expect ( npmDistTag . add ) . toHaveBeenCalledWith ( "@integration/package-2@1.0.1" , "beta" , conf ) ;
102
+ expect ( npmDistTag . add ) . toHaveBeenCalledWith ( "@integration/package-1@1.0.1" , "beta" , conf , cache ) ; // <--
103
+ expect ( npmDistTag . add ) . toHaveBeenCalledWith ( "@integration/package-2@1.0.1" , "beta" , conf , cache ) ;
98
104
} ) ;
99
105
100
106
test ( "publish prerelease --pre-dist-tag beta" , async ( ) => {
@@ -154,7 +160,10 @@ Map {
154
160
const conf = expect . objectContaining ( {
155
161
tag : "next" ,
156
162
} ) ;
163
+ const cache = expect . objectContaining ( {
164
+ otp : undefined ,
165
+ } ) ;
157
166
158
- expect ( npmDistTag . add ) . toHaveBeenCalledWith ( "@integration/package-1@1.0.1-beta.0" , "beta" , conf ) ;
159
- expect ( npmDistTag . add ) . toHaveBeenCalledWith ( "@integration/package-2@1.0.1-beta.0" , "beta" , conf ) ;
167
+ expect ( npmDistTag . add ) . toHaveBeenCalledWith ( "@integration/package-1@1.0.1-beta.0" , "beta" , conf , cache ) ;
168
+ expect ( npmDistTag . add ) . toHaveBeenCalledWith ( "@integration/package-2@1.0.1-beta.0" , "beta" , conf , cache ) ;
160
169
} ) ;
0 commit comments