diff --git a/src/main/java/tech/jhipster/lite/generator/client/vue/security/oauth2_keycloak/domain/VueOAuth2KeycloakModulesFactory.java b/src/main/java/tech/jhipster/lite/generator/client/vue/security/oauth2_keycloak/domain/VueOAuth2KeycloakModulesFactory.java index 615eda82695..7f5e0237b37 100644 --- a/src/main/java/tech/jhipster/lite/generator/client/vue/security/oauth2_keycloak/domain/VueOAuth2KeycloakModulesFactory.java +++ b/src/main/java/tech/jhipster/lite/generator/client/vue/security/oauth2_keycloak/domain/VueOAuth2KeycloakModulesFactory.java @@ -61,6 +61,13 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) { .addTemplate("infrastructure/secondary/KeycloakAuthRepository.ts") .addTemplate("infrastructure/secondary/KeycloakHttp.ts") .and() + .add(APP_SOURCE.template("test/webapp/unit/auth/application/AuthProvider.spec.ts"), TEST_DESTINATION.append("unit/auth/application/AuthProvider.spec.ts")) + .batch(APP_SOURCE.append("test/webapp/unit/auth/infrastructure/secondary"), TEST_DESTINATION.append("unit/auth/infrastructure/secondary")) + .addTemplate("KeycloakAuthRepository.spec.ts") + .addTemplate("KeycloakHttp.spec.ts") + .addTemplate("KeycloakHttpStub.ts") + .addTemplate("KeycloakStub.ts") + .and() .and() .mandatoryReplacements() .in(path("src/main/webapp/app/main.ts")) @@ -76,15 +83,6 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) { ) .and() .and() - .files() - .add(APP_SOURCE.template("test/webapp/unit/auth/application/AuthProvider.spec.ts"), TEST_DESTINATION.append("unit/auth/application/AuthProvider.spec.ts")) - .batch(APP_SOURCE.append("test/webapp/unit/auth/infrastructure/secondary"), TEST_DESTINATION.append("unit/auth/infrastructure/secondary")) - .addTemplate("KeycloakAuthRepository.spec.ts") - .addTemplate("KeycloakHttp.spec.ts") - .addTemplate("KeycloakHttpStub.ts") - .addTemplate("KeycloakStub.ts") - .and() - .and() .build(); //@formatter:on }