@@ -42,6 +42,12 @@ describe('nx-dotnet project generator', () => {
4242 expect ( config ) . toBeDefined ( ) ;
4343 } ) ;
4444
45+ it ( 'should not include serve target for libraries' , async ( ) => {
46+ await GenerateProject ( appTree , options , dotnetClient , 'library' ) ;
47+ const config = readProjectConfiguration ( appTree , 'test' ) ;
48+ expect ( config . targets . serve ) . not . toBeDefined ( ) ;
49+ } )
50+
4551 it ( 'should tag generated projects' , async ( ) => {
4652 await GenerateProject ( appTree , options , dotnetClient , 'library' ) ;
4753 const config = readProjectConfiguration ( appTree , 'test' ) ;
@@ -66,6 +72,12 @@ describe('nx-dotnet project generator', () => {
6672 expect ( absoluteDistPath ) . toEqual ( expectedDistPath ) ;
6773 } ) ;
6874
75+ it ( 'should include serve target for applications' , async ( ) => {
76+ await GenerateProject ( appTree , options , dotnetClient , 'application' ) ;
77+ const config = readProjectConfiguration ( appTree , 'test' ) ;
78+ expect ( config . targets . serve ) . toBeDefined ( ) ;
79+ } )
80+
6981 /**
7082 * This test requires a live dotnet client.
7183 */
0 commit comments