Enhance Jest configuration and testing infrastructure
- Updated Jest configuration to support ESM and improve test coverage - Added comprehensive test files for helpers, index, context, and HASS integration - Configured coverage reporting and added new test scripts - Updated Jest resolver to handle module resolution for chalk and related packages - Introduced new test setup files for mocking and environment configuration
This commit is contained in:
@@ -8,7 +8,9 @@
|
||||
"build": "npx tsc",
|
||||
"start": "node dist/index.js",
|
||||
"dev": "tsx watch src/index.ts",
|
||||
"test": "jest --config=jest.config.js",
|
||||
"test": "NODE_OPTIONS=--experimental-vm-modules jest --config=jest.config.cjs",
|
||||
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules jest --config=jest.config.cjs --coverage",
|
||||
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --config=jest.config.cjs --watch",
|
||||
"lint": "eslint src --ext .ts",
|
||||
"lint:fix": "eslint src --ext .ts --fix",
|
||||
"prepare": "npm run build",
|
||||
@@ -19,11 +21,13 @@
|
||||
"dependencies": {
|
||||
"@digital-alchemy/core": "^24.11.4",
|
||||
"@digital-alchemy/hass": "^24.11.4",
|
||||
"ajv": "^8.17.1",
|
||||
"dotenv": "^16.3.1",
|
||||
"litemcp": "^0.7.0",
|
||||
"zod": "^3.22.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/ajv": "^0.0.5",
|
||||
"@types/jest": "^28.1.8",
|
||||
"@types/node": "^20.17.10",
|
||||
"jest": "^28.1.3",
|
||||
@@ -34,4 +38,4 @@
|
||||
},
|
||||
"author": "Jango Blockchained",
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user