npm i && npm test && npm run devnpm install
# или
yarn install
# или
bun installЗапуск dev сервера на http://localhost:5173:
npm run devЗапуск всех unit-тестов:
npm testИнтерактивный режим с UI:
npm run test:uinpm run build✓ src/ParamEditor.test.tsx (58 tests)
✓ Rendering (4)
✓ should render all parameters from params array
✓ should render input fields for string type parameters
✓ should display parameter type in label
✓ should render empty message when no parameters provided
✓ Initialization (3)
✓ should initialize input values from model.paramValues
✓ should initialize with empty string if paramValue not found
✓ should handle empty paramValues array
✓ User Interactions (3)
✓ should update input value when user types
✓ should handle multiple parameter changes
✓ should handle clearing input values
✓ getModel() Method (6)
✓ should return model with updated paramValues
✓ should reflect changes in getModel() after user input
✓ should preserve colors from original model
✓ should handle empty colors array
✓ should include all paramIds even with empty values
✓ Props Updates (1)
✓ should handle new parameters added to props
✓ Type Safety and Edge Cases (3)
✓ should handle special characters in parameter values
✓ should handle unicode characters
✓ should handle very long strings
✓ State Management (2)
✓ should maintain separate state for each input
✓ should not mutate original model prop
Tests: 25 passed
Run time: ~500ms