@@ -9,21 +9,18 @@ vi.mock('./unit/index.js');
99
1010describe ( 'testing scaffolder' , ( ) => {
1111 const projectRoot = any . string ( ) ;
12- const visibility = any . word ( ) ;
1312 const dialect = any . word ( ) ;
1413 const unitTestingDevDependencies = any . listOf ( any . string ) ;
1514 const unitTestNextSteps = any . listOf ( any . simpleObject ) ;
1615 const unitTestScripts = any . simpleObject ( ) ;
1716 const unitTestFilesToIgnoreFromVcs = any . listOf ( any . string ) ;
1817 const unitTestDirectoriesToIgnoreFromVcs = any . listOf ( any . string ) ;
19- const vcs = any . simpleObject ( ) ;
2018 const unitTestFrameworks = any . simpleObject ( ) ;
2119 const decisions = any . simpleObject ( ) ;
22- const pathWithinParent = any . string ( ) ;
2320
2421 beforeEach ( ( ) => {
2522 when ( scaffoldUnitTesting )
26- . calledWith ( { projectRoot, visibility , vcs , frameworks : unitTestFrameworks , decisions, dialect, pathWithinParent } )
23+ . calledWith ( { projectRoot, frameworks : unitTestFrameworks , decisions, dialect} )
2724 . thenResolve ( {
2825 dependencies : { javascript : { development : unitTestingDevDependencies } } ,
2926 scripts : unitTestScripts ,
@@ -35,13 +32,10 @@ describe('testing scaffolder', () => {
3532 it ( 'should scaffold unit testing if the project will be unit test' , async ( ) => {
3633 expect ( await scaffoldTesting ( {
3734 projectRoot,
38- visibility,
3935 tests : { unit : true } ,
40- vcs,
4136 unitTestFrameworks,
4237 decisions,
43- dialect,
44- pathWithinParent
38+ dialect
4539 } ) ) . toEqual ( {
4640 dependencies : { javascript : { development : [ '@travi/any' , ...unitTestingDevDependencies ] } } ,
4741 scripts : unitTestScripts ,
@@ -52,12 +46,12 @@ describe('testing scaffolder', () => {
5246 } ) ;
5347
5448 it ( 'should not scaffold unit testing if the project will not be unit tested' , async ( ) => {
55- expect ( await scaffoldTesting ( { projectRoot, visibility , tests : { unit : false , integration : true } , pathWithinParent } ) )
49+ expect ( await scaffoldTesting ( { projectRoot, tests : { unit : false , integration : true } } ) )
5650 . toEqual ( { dependencies : { javascript : { development : [ '@travi/any' ] } } , eslint : { } } ) ;
5751 } ) ;
5852
5953 it ( 'should not scaffold testing if the project will not be tested' , async ( ) => {
60- expect ( await scaffoldTesting ( { projectRoot, visibility , tests : { unit : false , integration : false } , pathWithinParent } ) )
54+ expect ( await scaffoldTesting ( { projectRoot, tests : { unit : false , integration : false } } ) )
6155 . toEqual ( { dependencies : { javascript : { development : [ ] } } , eslint : { } } ) ;
6256 } ) ;
6357} ) ;
0 commit comments