Added unit tests, vitest, coverage.

This commit is contained in:
HarelM
2025-09-17 11:11:55 +03:00
parent 7459379e92
commit bd0f9404cf
6 changed files with 814 additions and 27 deletions
+5 -1
View File
@@ -12,6 +12,8 @@
"i18n:refresh": "i18next 'src/**/*.{ts,tsx,js,jsx}'",
"lint": "eslint",
"test": "cypress run",
"test-unit": "vitest",
"test-unit-ci": "vitest run --coverage --reporter=json",
"cy:open": "cypress open",
"lint-css": "stylelint \"src/styles/*.scss\"",
"sort-styles": "jq 'sort_by(.id)' src/config/styles.json > tmp.json && mv tmp.json src/config/styles.json"
@@ -125,6 +127,7 @@
"@types/uuid": "^10.0.0",
"@types/wicg-file-system-access": "^2023.10.6",
"@vitejs/plugin-react": "^5.0.2",
"@vitest/coverage-v8": "^3.2.4",
"cors": "^2.8.5",
"cypress": "^15.2.0",
"cypress-plugin-tab": "^1.0.5",
@@ -145,6 +148,7 @@
"typescript-eslint": "^8.44.0",
"uuid": "^13.0.0",
"vite": "^7.1.5",
"vite-plugin-istanbul": "^7.1.0"
"vite-plugin-istanbul": "^7.1.0",
"vitest": "^3.2.4"
}
}