@@ -90,6 +90,44 @@ describe(`generator - ${clientFramework}`, () => {
9090 it ( 'should match generated files snapshot' , ( ) => {
9191 expect ( runResult . getStateSnapshot ( ) ) . toMatchSnapshot ( ) ;
9292 } ) ;
93+
94+ it ( 'should match application snapshot' , ( ) => {
95+ const application = runResult . application ! ;
96+ expect ( application ) . toMatchSnapshot ( {
97+ addLanguageCallbacks : expect . any ( Array ) ,
98+ customizeTemplatePaths : expect . any ( Array ) ,
99+ dockerContainers : expect . any ( Object ) ,
100+ entities : expect . any ( Array ) ,
101+ languages : expect . any ( Array ) ,
102+ javaNodeBuildPaths : expect . any ( Array ) ,
103+ jhipsterPackageJson : expect . any ( Object ) ,
104+ nodeDependencies : expect . any ( Object ) ,
105+ prettierExtensions : expect . any ( Array ) ,
106+ prettierFolders : expect . any ( Array ) ,
107+ supportedLanguages : expect . any ( Array ) ,
108+ ...( application ?. generateBuiltInUserEntity
109+ ? {
110+ user : expect . any ( Object ) ,
111+ }
112+ : { } ) ,
113+ ...( application ?. generateBuiltInAuthorityEntity
114+ ? {
115+ authority : expect . any ( Object ) ,
116+ }
117+ : { } ) ,
118+ ...( application ?. generateUserManagement
119+ ? {
120+ userManagement : expect . any ( Object ) ,
121+ }
122+ : { } ) ,
123+ ...( application ?. enableTranslation
124+ ? {
125+ languagesToGenerateDefinition : expect . any ( Array ) ,
126+ }
127+ : { } ) ,
128+ } ) ;
129+ } ) ;
130+
93131 it ( 'should match source calls snapshot' , ( ) => {
94132 expect ( runResult . sourceCallsArg ) . toMatchSnapshot ( ) ;
95133 } ) ;
0 commit comments