(i18n) install jest and add tests

We install Jest to test our i18n package.
We tests:
  - the extraction of the translations on the Desk app fo crowdin
  - the formatings of the translations from crowdin to the app
  - we check that all the translations are present in the app
We connect the tests to the CI.
This commit is contained in:
Anthony LC
2024-01-24 15:19:49 +01:00
committed by Anthony LC
parent 3d0824e023
commit 801cb98e15
9 changed files with 223 additions and 12 deletions

View File

@@ -20,7 +20,8 @@
"e2e:test": "yarn APP_E2E run test",
"lint": "yarn APP_DESK run lint && yarn APP_E2E run lint",
"i18n:extract": "yarn I18N run extract-translation",
"i18n:deploy": "yarn I18N run format-deploy"
"i18n:deploy": "yarn I18N run format-deploy",
"i18n:test": "yarn I18N run test"
},
"resolutions": {
"@types/node": "20.11.16",