diff --git a/src/main/java/tech/jhipster/lite/generator/client/react/i18n/domain/ReactI18nModuleFactory.java b/src/main/java/tech/jhipster/lite/generator/client/react/i18n/domain/ReactI18nModuleFactory.java
index ddf36d8cb36..1245ec2f6be 100644
--- a/src/main/java/tech/jhipster/lite/generator/client/react/i18n/domain/ReactI18nModuleFactory.java
+++ b/src/main/java/tech/jhipster/lite/generator/client/react/i18n/domain/ReactI18nModuleFactory.java
@@ -71,7 +71,7 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
.in(path(INDEX_TEST + "webapp/unit/home/infrastructure/primary/HomePage.spec.tsx"))
.add(append(), LINE_BREAK + """
describe('Home I18next', () => {
- it('renders with translation', () => {
+ it('should render with translation', () => {
vi.mock('react-i18next', () => ({
useTranslation: () => {
return {
diff --git a/src/main/resources/generator/client/common/i18n/i18n.spec.ts b/src/main/resources/generator/client/common/i18n/i18n.spec.ts
index b2d044ffca5..4c25d6bb122 100644
--- a/src/main/resources/generator/client/common/i18n/i18n.spec.ts
+++ b/src/main/resources/generator/client/common/i18n/i18n.spec.ts
@@ -2,16 +2,16 @@ import i18n from '@/i18n';
import { mergeTranslations, type Translations } from '@/Translations';
describe('i18n configuration', () => {
- it('loads en translation', () => {
+ it('should load en translation', () => {
expect((i18n.getResourceBundle('en', '') as Translations).home.translationEnabled).toBe('Internationalization enabled');
});
- it('loads fr translation', () => {
+ it('should load fr translation', () => {
expect((i18n.getResourceBundle('fr', '') as Translations).home.translationEnabled).toBe('Internationalisation activée');
});
describe('mergeTranslations function', () => {
- it('merges translations correctly when keys overlap', () => {
+ it('should merge translations correctly when keys overlap', () => {
const translationSet1 = {
en: {
home: {
diff --git a/src/main/resources/generator/client/react/core/src/test/webapp/unit/home/infrastructure/primary/HomePage.spec.tsx.mustache b/src/main/resources/generator/client/react/core/src/test/webapp/unit/home/infrastructure/primary/HomePage.spec.tsx.mustache
index 00f8eaf4836..cdc5e65f9dc 100644
--- a/src/main/resources/generator/client/react/core/src/test/webapp/unit/home/infrastructure/primary/HomePage.spec.tsx.mustache
+++ b/src/main/resources/generator/client/react/core/src/test/webapp/unit/home/infrastructure/primary/HomePage.spec.tsx.mustache
@@ -4,7 +4,7 @@ import { describe, it } from 'vitest';
import HomePage from '@/home/infrastructure/primary/HomePage';
describe('Home tests', () => {
- it('renders without crashing', () => {
+ it('should render without crashing', () => {
const { getByText } = render();
const title = getByText('React + TypeScript + Vite');
expect(title).toBeTruthy();
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.test.tsx.mustache
index cbc45166d78..c8cd02473b1 100644
--- 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.test.tsx.mustache
@@ -28,13 +28,13 @@ const login = async () => {
};
describe('loginForm', () => {
- it('render button should contain "Log in"', () => {
+ it('should render button should contain "Log in"', () => {
const { getByText } = render();
const loginButton = getByText('Log in');
expect(loginButton).toBeTruthy();
});
- it('render the modal on login button click and close it', async () => {
+ it('should render the modal on login button click and close it', async () => {
const { getByText, getByTestId } = render();
const loginButton = getByText('Log in');
fireEvent.click(loginButton);
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.test.tsx.mustache
index 1bc396e2124..1a85e61d676 100644
--- 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.test.tsx.mustache
@@ -54,7 +54,7 @@ describe('test login modal', () => {
expect(submit).toBeTruthy();
});
- it('render the modal on login button click and close the modal on submit button click', async () => {
+ it('should render the modal on login button click and close the modal on submit button click', async () => {
const { getByPlaceholderText, getByTestId } = LoginModalRender(true);
const spy = vi.spyOn(axios, 'post');
spy.mockImplementationOnce((): Promise => Promise.resolve({ data: {} }));
@@ -71,7 +71,7 @@ describe('test login modal', () => {
expect(spy).toHaveBeenCalledOnce();
});
- it('render the modal on login button click and close the modal on close button', async () => {
+ it('should render the modal on login button click and close the modal on close button', async () => {
const { getByPlaceholderText, getByRole } = LoginModalRender(true);
const spy = vi.spyOn(axios, 'post');
spy.mockImplementationOnce((): Promise => Promise.resolve({ data: {} }));
diff --git a/src/test/resources/projects/react-app/HomePage.spec.tsx b/src/test/resources/projects/react-app/HomePage.spec.tsx
index 00f8eaf4836..cdc5e65f9dc 100644
--- a/src/test/resources/projects/react-app/HomePage.spec.tsx
+++ b/src/test/resources/projects/react-app/HomePage.spec.tsx
@@ -4,7 +4,7 @@ import { describe, it } from 'vitest';
import HomePage from '@/home/infrastructure/primary/HomePage';
describe('Home tests', () => {
- it('renders without crashing', () => {
+ it('should render without crashing', () => {
const { getByText } = render();
const title = getByText('React + TypeScript + Vite');
expect(title).toBeTruthy();