@@ -43,11 +43,11 @@ describe('package project-type scaffolder', () => {
4343 when ( determinePackageAccessLevelFromProjectVisibility )
4444 . calledWith ( { projectVisibility : visibility } )
4545 . thenReturn ( packageAccessLevel ) ;
46+ when ( scaffoldPublishable ) . calledWith ( ) . thenReturn ( publishableResults ) ;
4647 } ) ;
4748
4849 it ( 'should scaffold details specific to a modern-js package' , async ( ) => {
4950 const dialect = dialects . BABEL ;
50- when ( scaffoldPublishable ) . calledWith ( { packageName, packageAccessLevel} ) . thenReturn ( publishableResults ) ;
5151 when ( buildDetails . default ) . calledWith ( {
5252 projectRoot,
5353 projectName,
@@ -93,7 +93,6 @@ describe('package project-type scaffolder', () => {
9393
9494 it ( 'should scaffold details specific to an esm-only package' , async ( ) => {
9595 const dialect = dialects . ESM ;
96- when ( scaffoldPublishable ) . calledWith ( { packageName, packageAccessLevel} ) . thenReturn ( publishableResults ) ;
9796 when ( buildDetails . default ) . calledWith ( {
9897 projectRoot,
9998 projectName,
@@ -134,7 +133,6 @@ describe('package project-type scaffolder', () => {
134133
135134 it ( 'should scaffold details specific to a typescript package' , async ( ) => {
136135 const dialect = dialects . TYPESCRIPT ;
137- when ( scaffoldPublishable ) . calledWith ( { packageName, packageAccessLevel} ) . thenReturn ( publishableResults ) ;
138136 when ( buildDetails . default ) . calledWith ( {
139137 projectRoot,
140138 projectName,
@@ -181,7 +179,6 @@ describe('package project-type scaffolder', () => {
181179
182180 it ( 'should not include build details when the project will not be scaffolded' , async ( ) => {
183181 const dialect = dialects . COMMON_JS ;
184- when ( scaffoldPublishable ) . calledWith ( { packageName, packageAccessLevel} ) . thenReturn ( publishableResults ) ;
185182 when ( buildDetails . default ) . calledWith ( {
186183 projectRoot,
187184 projectName,
@@ -221,7 +218,6 @@ describe('package project-type scaffolder', () => {
221218 it ( 'should define the registry to publish to when provided' , async ( ) => {
222219 const publishRegistry = any . url ( ) ;
223220 const dialect = dialects . BABEL ;
224- when ( scaffoldPublishable ) . calledWith ( { packageName, packageAccessLevel} ) . thenReturn ( publishableResults ) ;
225221 when ( buildDetails . default ) . calledWith ( {
226222 projectRoot,
227223 projectName,
0 commit comments