Enhance project structure and testing capabilities
- Updated .dockerignore to include additional logs and IDE files, improving Docker build efficiency. - Added .eslintrc.json for TypeScript linting configuration, ensuring code quality and consistency. - Refactored Dockerfile to streamline the build process and utilize a slimmer Node.js image. - Introduced jest-resolver.cjs and jest.setup.js for improved Jest testing configuration and setup. - Updated jest.config.js to support ESM and added new test patterns for better test organization. - Enhanced TypeScript schemas to include new device types (media_player, fan, lock, vacuum, scene, script, camera) for comprehensive validation. - Added unit tests for device schemas and Home Assistant connection, improving test coverage and reliability. - Updated README.md with new testing instructions and device control examples, enhancing user guidance.
This commit is contained in:
@@ -1,30 +1,36 @@
|
||||
# Dependencies
|
||||
node_modules
|
||||
npm-debug.log
|
||||
yarn-debug.log
|
||||
yarn-error.log
|
||||
|
||||
# Build outputs
|
||||
# Build output
|
||||
dist
|
||||
|
||||
# Environment and config
|
||||
.env
|
||||
.env.*
|
||||
|
||||
# Version control
|
||||
.git
|
||||
.gitignore
|
||||
|
||||
# IDE
|
||||
# Environment variables
|
||||
.env
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# IDE files
|
||||
.vscode
|
||||
.idea
|
||||
|
||||
# Testing
|
||||
# Test files
|
||||
coverage
|
||||
__tests__
|
||||
jest.config.js
|
||||
jest.setup.js
|
||||
*.test.ts
|
||||
*.spec.ts
|
||||
|
||||
# Logs
|
||||
*.log
|
||||
|
||||
# Documentation
|
||||
README.md
|
||||
LICENSE
|
||||
CHANGELOG.md
|
||||
# Other
|
||||
*.md
|
||||
.DS_Store
|
||||
Dockerfile
|
||||
docker-compose.yml
|
||||
.dockerignore
|
||||
Reference in New Issue
Block a user