[tests] refactor translation tests (#3866)

- Remove `sinon` dependency in favor of Jest native mocking
  - Unify test helper functions across translation test suites
- Rename `setupDOMEnvironment` to `createTranslationTestEnvironment` for
consistency
  - Simplify DOM setup by removing unnecessary Promise/async patterns
- Avoid potential port conflicts by using port 3001 for translator unit
tests
  - Improve test reliability and maintainability
This commit is contained in:
Kristjan ESPERANTO
2025-08-28 21:26:50 +02:00
committed by GitHub
parent eb719429d4
commit 4c0a4689c3
5 changed files with 69 additions and 171 deletions

View File

@@ -111,7 +111,6 @@
"markdownlint-cli2": "^0.18.1",
"playwright": "^1.55.0",
"prettier": "^3.6.2",
"sinon": "^21.0.0",
"stylelint": "^16.23.1",
"stylelint-config-standard": "^39.0.0",
"stylelint-prettier": "^5.0.3"