chore: apply prettier formatting (#6719)

This commit is contained in:
Matti Nannt
2025-10-20 16:28:14 +02:00
committed by GitHub
parent 74405cc05f
commit 8bdfc0686f
1076 changed files with 3018 additions and 2991 deletions
+3 -3
View File
@@ -16,17 +16,17 @@ When generating test files inside the "/app/web" path, follow these rules:
- When using "screen.getByText" check for the tolgee string if it is being used in the file.
- The types for mocked variables can be found in the "packages/types" path. Be sure that every imported type exists before using it. Don't create types that are not already in the codebase.
- When mocking data check if the properties added are part of the type of the object being mocked. Only specify known properties, don't use properties that are not part of the type.
If it's a test for a ".tsx" file, follow these extra instructions:
- Add this code inside the "describe" block and before any test:
afterEach(() => {
cleanup();
cleanup();
});
- The "afterEach" function should only have the "cleanup()" line inside it and should be adde to the "vitest" imports.
- For click events, import userEvent from "@testing-library/user-event"
- Mock other components that can make the text more complex and but at the same time mocking it wouldn't make the test flaky. It's ok to leave basic and simple components.
- You don't need to mock @tolgee/react
- Use "import "@testing-library/jest-dom/vitest";"
- Use "import "@testing-library/jest-dom/vitest";"