@@ -19,8 +19,15 @@ describe('runPublish', () => {
1919 dir : '.' ,
2020 dryRun : false ,
2121 } ) ;
22- expect ( run ) . toHaveBeenCalledTimes ( 1 ) ;
22+ expect ( run ) . toHaveBeenCalledTimes ( 2 ) ;
2323 expect ( run . mock . calls [ 0 ] [ 0 ] ) . toMatchInlineSnapshot ( `
24+ Object {
25+ "command": "npm config set \\"//registry.npmjs.org/:_authToken\\" \\"\\\\\${NPM_AUTH_TOKEN}\\"",
26+ "dir": ".",
27+ "dryRun": false,
28+ }
29+ ` ) ;
30+ expect ( run . mock . calls [ 1 ] [ 0 ] ) . toMatchInlineSnapshot ( `
2431 Object {
2532 "command": "npm_config_registry=https://registry.npmjs.org/ npm publish --tag latest",
2633 "dir": ".",
@@ -39,8 +46,15 @@ describe('runPublish', () => {
3946 dir : '.' ,
4047 dryRun : false ,
4148 } ) ;
42- expect ( run ) . toHaveBeenCalledTimes ( 1 ) ;
49+ expect ( run ) . toHaveBeenCalledTimes ( 2 ) ;
4350 expect ( run . mock . calls [ 0 ] [ 0 ] ) . toMatchInlineSnapshot ( `
51+ Object {
52+ "command": "npm config set \\"//registry.npmjs.org/:_authToken\\" \\"\\\\\${NPM_AUTH_TOKEN}\\"",
53+ "dir": ".",
54+ "dryRun": false,
55+ }
56+ ` ) ;
57+ expect ( run . mock . calls [ 1 ] [ 0 ] ) . toMatchInlineSnapshot ( `
4458 Object {
4559 "command": "npm publish --tag latest",
4660 "dir": ".",
@@ -73,15 +87,22 @@ describe('runPublish', () => {
7387 "Running the following at /package-b",
7488 ]
7589 ` ) ;
76- expect ( run ) . toHaveBeenCalledTimes ( 2 ) ;
90+ expect ( run ) . toHaveBeenCalledTimes ( 3 ) ;
7791 expect ( run . mock . calls [ 0 ] [ 0 ] ) . toMatchInlineSnapshot ( `
92+ Object {
93+ "command": "npm config set \\"//registry.npmjs.org/:_authToken\\" \\"\\\\\${NPM_AUTH_TOKEN}\\"",
94+ "dir": ".",
95+ "dryRun": false,
96+ }
97+ ` ) ;
98+ expect ( run . mock . calls [ 1 ] [ 0 ] ) . toMatchInlineSnapshot ( `
7899 Object {
79100 "command": "npm_config_registry=https://registry.npmjs.org/ npm publish --tag latest",
80101 "dir": "/package-a",
81102 "dryRun": false,
82103 }
83104 ` ) ;
84- expect ( run . mock . calls [ 1 ] [ 0 ] ) . toMatchInlineSnapshot ( `
105+ expect ( run . mock . calls [ 2 ] [ 0 ] ) . toMatchInlineSnapshot ( `
85106 Object {
86107 "command": "npm_config_registry=https://registry.npmjs.org/ npm publish --tag latest",
87108 "dir": "/package-b",
0 commit comments