- 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
44 lines
763 B
JSON
44 lines
763 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "NodeNext",
|
|
"moduleResolution": "NodeNext",
|
|
"outDir": "./dist",
|
|
"rootDir": ".",
|
|
"strict": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"resolveJsonModule": true,
|
|
"declaration": true,
|
|
"sourceMap": true,
|
|
"allowJs": true,
|
|
"types": [
|
|
"node",
|
|
"jest"
|
|
],
|
|
"typeRoots": [
|
|
"./node_modules/@types"
|
|
],
|
|
"lib": [
|
|
"ES2022"
|
|
],
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@src/*": [
|
|
"src/*"
|
|
],
|
|
"@tests/*": [
|
|
"__tests__/*"
|
|
]
|
|
}
|
|
},
|
|
"include": [
|
|
"src/**/*",
|
|
"__tests__/**/*"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"dist"
|
|
]
|
|
} |