Repository: jhipster/jhipster-lite
Pull request #12322 (2025-04-14 19:10:44)

Fix some typos


Patch:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index ca85b44bd..feb39ff48 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -395,7 +395,7 @@ from the main (upstream) repository:
 
 - For example,
   - Running `./tests-ci/generate.sh fullapp maven yaml` will generate a Spring Boot project `fullapp` in the directory`/tmp/jhlite/`
-  - The generated project will have support for maven, sonar, postgresql, liquibase, ehcache, vue-core and lot more capabilities required for a Spring Boot + Vue application.
+  - The generated project will have support for maven, sonar, postgresql, liquibase, ehcache, vue-core and a lot more capabilities required for a Spring Boot + Vue application.
 
 ## <a name="rules"></a> Coding Rules
 
@@ -405,7 +405,7 @@ To ensure consistency throughout the source code, keep these rules in mind as yo
 - All files must follow the [.editorconfig file](http://editorconfig.org/) located at the root of the JHipster generator project. Please note that generated projects use the same `.editorconfig` file, so that both the generator and the generated projects share the same configuration.
 - Java files **must be** formatted using Prettier default code style.
 - Generators JavaScript files **must follow** the eslint configuration defined at the project root, which is based on [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript).
-- Any client side feature/change should be done for both Angular, React, Vue clients
+- Any client side feature/change should be done for both Angular, React, and Vue clients
 - Web apps JavaScript files **must follow** [Google's JavaScript Style Guide](https://google.github.io/styleguide/jsguide.html).
 - Angular TypeScript files **must follow** the [Official Angular style guide](https://angular.dev/style-guide).
 - React/Redux TypeScript files **may follow** the [React/Redux TypeScript guide](https://github.com/piotrwitek/react-redux-typescript-guide).
diff --git a/documentation/hexagonal-architecture.md b/documentation/hexagonal-architecture.md
index 1efce3b7d..18c009c93 100644
--- a/documentation/hexagonal-architecture.md
+++ b/documentation/hexagonal-architecture.md
@@ -100,7 +100,7 @@ As said many times, each "part" here has a specific concern so let's follow the
 
 This is the code that really matters. You can build it using [Domain Driven Design](https://en.wikipedia.org/wiki/Domain-driven_design) building blocks or any other tool that will help you build a clear representation of the business.
 
-This model doesn't depend on anything and everything depends on it so it is totally framework-agnostic, you just need to pick a language to build your Domain Model.
+This model doesn't depend on anything and everything depends on it, so it is totally framework-agnostic, you just need to pick a language to build your Domain Model.
 
 Apart from the code used to make the business operations we'll find ports in the Domain Model. Ports are `interfaces` that are used to invert dependencies. As the Domain Model sometimes needs ports for some operations, they can only be there since the Domain doesn't depend on anything.
 
diff --git a/src/main/java/tech/jhipster/lite/generator/client/react/security/jwt/domain/ReactJwtModuleFactory.java b/src/main/java/tech/jhipster/lite/generator/client/react/security/jwt/domain/ReactJwtModuleFactory.java
index 9f455f96c..6f9f34506 100644
--- a/src/main/java/tech/jhipster/lite/generator/client/react/security/jwt/domain/ReactJwtModuleFactory.java
+++ b/src/main/java/tech/jhipster/lite/generator/client/react/security/jwt/domain/ReactJwtModuleFactory.java
@@ -75,16 +75,16 @@ public class ReactJwtModuleFactory {
           .addTemplate("LoginModal.scss")
           .and()
         .add(APP_SOURCE.template("login/services/login.ts"), APP_DESTINATION.append("login/services/login.ts"))
-        .add(TEST_JAVASCRIPT_SOURCE.template("login/services/login.test.ts"), TEST_DESTINATION.append("login/services/login.test.ts"))
+        .add(TEST_JAVASCRIPT_SOURCE.template("login/services/login.spec.ts"), TEST_DESTINATION.append("login/services/login.spec.ts"))
         .add(
-          TEST_JAVASCRIPT_SOURCE.template("login/primary/loginForm/index.test.tsx"),
-          TEST_DESTINATION.append("login/primary/loginForm/index.test.tsx")
+          TEST_JAVASCRIPT_SOURCE.template("login/primary/loginForm/index.spec.tsx"),
+          TEST_DESTINATION.append("login/primary/loginForm/index.spec.tsx")
         )
         .add(
-          TEST_JAVASCRIPT_SOURCE.template("login/primary/loginModal/index.test.tsx"),
-          TEST_DESTINATION.append("login/primary/loginModal/index.test.tsx")
+          TEST_JAVASCRIPT_SOURCE.template("login/primary/loginModal/index.spec.tsx"),
+          TEST_DESTINATION.append("login/primary/loginModal/index.spec.tsx")
         )
-        .add(TEST_JAVASCRIPT_SOURCE.template("common/services/storage.test.ts"), TEST_DESTINATION.append("common/services/storage.test.ts"))
+        .add(TEST_JAVASCRIPT_SOURCE.template("common/services/storage.spec.ts"), TEST_DESTINATION.append("common/services/storage.spec.ts"))
         .and()
       .mandatoryReplacements()
         .in(path("src/main/webapp/app/home/infrastructure/primary/HomePage.tsx"))
diff --git a/src/main/resources/generator/client/react/core/src/main/webapp/app/home/infrastructure/primary/HomePage.tsx.mustache b/src/main/resources/generator/client/react/core/src/main/webapp/app/home/infrastructure/primary/HomePage.tsx.mustache
index 1c57e3c5f..d15791247 100644
--- a/src/main/resources/generator/client/react/core/src/main/webapp/app/home/infrastructure/primary/HomePage.tsx.mustache
+++ b/src/main/resources/generator/client/react/core/src/main/webapp/app/home/infrastructure/primary/HomePage.tsx.mustache
@@ -16,7 +16,7 @@ function HomePage() {
         </p>
 
         <p>
-          <a href="https://vitejs.dev/guide/features.html" target="_blank" rel="noopener noreferrer">
+          <a href="https://vite.dev/guide/features.html" target="_blank" rel="noopener noreferrer">
             Vite Documentation
           </a>
           <span>&nbsp;|&nbsp;</span>
diff --git a/src/main/resources/generator/client/react/security/jwt/src/main/webapp/app/common/primary/app/LoginApp.tsx.mustache b/src/main/resources/generator/client/react/security/jwt/src/main/webapp/app/common/primary/app/LoginApp.tsx.mustache
index 295cb5c05..5ac95f4bd 100644
--- a/src/main/resources/generator/client/react/security/jwt/src/main/webapp/app/common/primary/app/LoginApp.tsx.mustache
+++ b/src/main/resources/generator/client/react/security/jwt/src/main/webapp/app/common/primary/app/LoginApp.tsx.mustache
@@ -20,7 +20,7 @@ function HomePage() {
         </p>
 
         <p>
-          <a href="https://vitejs.dev/guide/features.html" target="_blank" rel="noopener noreferrer">
+          <a href="https://vite.dev/guide/features.html" target="_blank" rel="noopener noreferrer">
             Vite Documentation
           </a>
           <span>&nbsp;|&nbsp;</span>
diff --git a/src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/common/services/storage.test.ts.mustache b/src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/common/services/storage.spec.ts.mustache
similarity index 100%
rename from src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/common/services/storage.test.ts.mustache
rename to src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/common/services/storage.spec.ts.mustache
diff --git a/src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/login/primary/loginForm/index.test.tsx.mustache b/src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/login/primary/loginForm/index.spec.tsx.mustache
similarity index 100%
rename from src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/login/primary/loginForm/index.test.tsx.mustache
rename to src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/login/primary/loginForm/index.spec.tsx.mustache
diff --git a/src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/login/primary/loginModal/index.test.tsx.mustache b/src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/login/primary/loginModal/index.spec.tsx.mustache
similarity index 100%
rename from src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/login/primary/loginModal/index.test.tsx.mustache
rename to src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/login/primary/loginModal/index.spec.tsx.mustache
diff --git a/src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/login/services/login.test.ts.mustache b/src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/login/services/login.spec.ts.mustache
similarity index 100%
rename from src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/login/services/login.test.ts.mustache
rename to src/main/resources/generator/client/react/security/jwt/src/test/webapp/unit/login/services/login.spec.ts.mustache
diff --git a/src/main/resources/generator/client/vue/webapp/app/home/infrastructure/primary/HomepageVue.vue.mustache b/src/main/resources/generator/client/vue/webapp/app/home/infrastructure/primary/HomepageVue.vue.mustache
index 72fc3afba..b222c1b47 100644
--- a/src/main/resources/generator/client/vue/webapp/app/home/infrastructure/primary/HomepageVue.vue.mustache
+++ b/src/main/resources/generator/client/vue/webapp/app/home/infrastructure/primary/HomepageVue.vue.mustache
@@ -13,7 +13,7 @@
 
     <p>
       <a
-        href="https://vitejs.dev/guide/features.html"
+        href="https://vite.dev/guide/features.html"
         target="_blank"
         rel="noopener"
       > Vite Documentation </a>
diff --git a/src/main/resources/generator/dependencies/svelte/package.json b/src/main/resources/generator/dependencies/svelte/package.json
index 69faa1b08..f2b048bb9 100644
--- a/src/main/resources/generator/dependencies/svelte/package.json
+++ b/src/main/resources/generator/dependencies/svelte/package.json
@@ -5,7 +5,7 @@
   "dependencies": {
     "@babel/preset-env": "7.22.9",
     "@sveltejs/adapter-static": "2.0.3",
-    "@sveltejs/kit": "2.8.3",
+    "@sveltejs/kit": "2.20.6",
     "@testing-library/svelte": "4.2.3",
     "@typescript-eslint/eslint-plugin": "6.0.0",
     "@typescript-eslint/parser": "6.0.0",


Test patch:
diff --git a/src/main/resources/generator/server/springboot/broker/kafka/KafkaTestContainerExtension.java.mustache b/src/main/resources/generator/server/springboot/broker/kafka/KafkaTestContainerExtension.java.mustache
index 1117c1f3c..75c427a7c 100644
--- a/src/main/resources/generator/server/springboot/broker/kafka/KafkaTestContainerExtension.java.mustache
+++ b/src/main/resources/generator/server/springboot/broker/kafka/KafkaTestContainerExtension.java.mustache
@@ -15,8 +15,6 @@ public class KafkaTestContainerExtension implements BeforeAllCallback {
   public void beforeAll(final ExtensionContext context) {
     if (!kafkaContainerStarted.get()) {
       kafkaContainer = new KafkaContainer(DockerImageName.parse("{{kafkaDockerImage}}")).withNetwork(null);
-      // Waiting this issue https://github.com/testcontainers/testcontainers-java/issues/9506 to remove this line
-      kafkaContainer.withEnv("KAFKA_LISTENERS", "PLAINTEXT://:9092,BROKER://:9093,CONTROLLER://:9094");
       kafkaContainer.start();
       kafkaContainerStarted.set(true);
       System.setProperty("kafka.bootstrap.servers", kafkaContainer.getBootstrapServers());
diff --git a/src/test/java/tech/jhipster/lite/generator/client/react/security/jwt/domain/ReactJwtModuleFactoryTest.java b/src/test/java/tech/jhipster/lite/generator/client/react/security/jwt/domain/ReactJwtModuleFactoryTest.java
index 1a0c43269..42118d556 100644
--- a/src/test/java/tech/jhipster/lite/generator/client/react/security/jwt/domain/ReactJwtModuleFactoryTest.java
+++ b/src/test/java/tech/jhipster/lite/generator/client/react/security/jwt/domain/ReactJwtModuleFactoryTest.java
@@ -95,10 +95,10 @@ class ReactJwtModuleFactoryTest {
       )
       .hasPrefixedFiles(
         "src/test/webapp/unit",
-        "login/services/login.test.ts",
-        "login/primary/loginForm/index.test.tsx",
-        "login/primary/loginModal/index.test.tsx",
-        "common/services/storage.test.ts"
+        "login/services/login.spec.ts",
+        "login/primary/loginForm/index.spec.tsx",
+        "login/primary/loginModal/index.spec.tsx",
+        "common/services/storage.spec.ts"
       )
       .hasFile("src/main/webapp/app/home/infrastructure/primary/HomePage.tsx")
       .containing("import LoginForm from '@/login/primary/loginForm';")
diff --git a/src/test/resources/projects/react-app/HomePage.tsx b/src/test/resources/projects/react-app/HomePage.tsx
index 670f5fb25..f42d8fe7a 100644
--- a/src/test/resources/projects/react-app/HomePage.tsx
+++ b/src/test/resources/projects/react-app/HomePage.tsx
@@ -19,7 +19,7 @@ function HomePage() {
         </p>
 
         <p>
-          <a href="https://vitejs.dev/guide/features.html" target="_blank" rel="noopener noreferrer">
+          <a href="https://vite.dev/guide/features.html" target="_blank" rel="noopener noreferrer">
             Vite Documentation
           </a>
           <span>&nbsp;|&nbsp;</span>
diff --git a/src/test/resources/projects/vue/HomepageVue.vue.template b/src/test/resources/projects/vue/HomepageVue.vue.template
index 72fc3afba..b222c1b47 100644
--- a/src/test/resources/projects/vue/HomepageVue.vue.template
+++ b/src/test/resources/projects/vue/HomepageVue.vue.template
@@ -13,7 +13,7 @@
 
     <p>
       <a
-        href="https://vitejs.dev/guide/features.html"
+        href="https://vite.dev/guide/features.html"
         target="_blank"
         rel="noopener"
       > Vite Documentation </a>
diff --git a/src/test/resources/tech/jhipster/lite/generator/client/react/i18n/domain/ReactI18nModuleFactoryTest.shouldBuildI18nModule.HomePage.tsx.approved.txt b/src/test/resources/tech/jhipster/lite/generator/client/react/i18n/domain/ReactI18nModuleFactoryTest.shouldBuildI18nModule.HomePage.tsx.approved.txt
index f6df3d85d..3c1e38ab8 100644
--- a/src/test/resources/tech/jhipster/lite/generator/client/react/i18n/domain/ReactI18nModuleFactoryTest.shouldBuildI18nModule.HomePage.tsx.approved.txt
+++ b/src/test/resources/tech/jhipster/lite/generator/client/react/i18n/domain/ReactI18nModuleFactoryTest.shouldBuildI18nModule.HomePage.tsx.approved.txt
@@ -25,7 +25,7 @@ function HomePage() {
         </p>
 
         <p>
-          <a href="https://vitejs.dev/guide/features.html" target="_blank" rel="noopener noreferrer">
+          <a href="https://vite.dev/guide/features.html" target="_blank" rel="noopener noreferrer">
             Vite Documentation
           </a>
           <span>&nbsp;|&nbsp;</span>