@@ -99,7 +99,7 @@ describe('package project-type scaffolder', () => {
9999
100100 it ( 'should scaffold details specific to an esm-only package' , async ( ) => {
101101 const dialect = dialects . ESM ;
102- when ( scaffoldPublishable ) . calledWith ( { packageName, visibility } ) . mockReturnValue ( publishableResults ) ;
102+ when ( scaffoldPublishable ) . calledWith ( { packageName, packageAccessLevel } ) . mockReturnValue ( publishableResults ) ;
103103 when ( buildDetails . default ) . calledWith ( {
104104 projectRoot,
105105 projectName,
@@ -142,7 +142,7 @@ describe('package project-type scaffolder', () => {
142142
143143 it ( 'should scaffold details specific to a typescript package' , async ( ) => {
144144 const dialect = dialects . TYPESCRIPT ;
145- when ( scaffoldPublishable ) . calledWith ( { packageName, visibility } ) . mockReturnValue ( publishableResults ) ;
145+ when ( scaffoldPublishable ) . calledWith ( { packageName, packageAccessLevel } ) . mockReturnValue ( publishableResults ) ;
146146 when ( buildDetails . default ) . calledWith ( {
147147 projectRoot,
148148 projectName,
@@ -191,7 +191,7 @@ describe('package project-type scaffolder', () => {
191191
192192 it ( 'should not include build details when the project will not be scaffolded' , async ( ) => {
193193 const dialect = dialects . COMMON_JS ;
194- when ( scaffoldPublishable ) . calledWith ( { packageName, visibility } ) . mockReturnValue ( publishableResults ) ;
194+ when ( scaffoldPublishable ) . calledWith ( { packageName, packageAccessLevel } ) . mockReturnValue ( publishableResults ) ;
195195 when ( buildDetails . default ) . calledWith ( {
196196 projectRoot,
197197 projectName,
@@ -233,6 +233,7 @@ describe('package project-type scaffolder', () => {
233233 it ( 'should define the registry to publish to when provided' , async ( ) => {
234234 const publishRegistry = any . url ( ) ;
235235 const dialect = dialects . BABEL ;
236+ when ( scaffoldPublishable ) . calledWith ( { packageName, packageAccessLevel} ) . mockReturnValue ( publishableResults ) ;
236237 when ( buildDetails . default ) . calledWith ( {
237238 projectRoot,
238239 projectName,
0 commit comments