feat: Добавлена конфигурация Jest для unit тестирования, установлены соответствующие библиотеки

This commit is contained in:
Ilia Mashkov
2025-11-20 14:15:36 +03:00
parent 55222ba27e
commit 6b41f506a3
5 changed files with 1841 additions and 4 deletions

View File

@@ -9,6 +9,7 @@
"build:dev": "webpack --env mode=development",
"lint": "eslint src --ext .ts,.tsx",
"lint:styles": "stylelint 'src/**/*.{css,scss}' --allow-empty-input",
"test:unit": "jest --config ./config/jest/jest.config.ts",
"type-check": "tsc --noEmit",
"prepare": "husky",
"pre-push": "pnpm type-check && pnpm lint && pnpm lint:styles && pnpm build:prod",
@@ -39,6 +40,9 @@
"@storybook/react": "^8.6.14",
"@storybook/react-webpack5": "^8.6.14",
"@svgr/webpack": "^8.1.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@types/jest": "^30.0.0",
"@types/node": "^22.0.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
@@ -61,9 +65,11 @@
"globals": "^15.12.0",
"html-webpack-plugin": "^5.6.0",
"husky": "^9.1.0",
"jest": "^30.2.0",
"mini-css-extract-plugin": "^2.9.0",
"prettier": "^3.4.0",
"react-refresh": "^0.14.2",
"regenerator-runtime": "^0.14.1",
"sass": "^1.81.0",
"sass-loader": "^16.0.0",
"storybook": "^8.6.14",