feat: implement CLI e2e tests

This commit is contained in:
Ralph Khreish
2025-07-11 16:31:39 +03:00
parent 14cc09d241
commit 39369ecd3c
29 changed files with 9447 additions and 30 deletions

View File

@@ -30,7 +30,38 @@ export default {
],
coverageDirectory: '<rootDir>/coverage-e2e',
// Custom reporters for better E2E test output
reporters: ['default'],
reporters: [
'default',
[
'jest-html-reporter',
{
pageTitle: 'Task Master E2E Test Report',
outputPath: '<rootDir>/test-results/e2e-test-report.html',
includeFailureMsg: true,
includeConsoleLog: true,
dateFormat: 'yyyy-mm-dd HH:MM:ss',
theme: 'darkTheme',
sort: 'status',
executionTimeWarningThreshold: 5,
customCss: '.test-result { padding: 10px; }',
collapseSuitesByDefault: false
}
],
[
'jest-junit',
{
outputDirectory: '<rootDir>/test-results',
outputName: 'e2e-junit.xml',
classNameTemplate: '{classname} - {title}',
titleTemplate: '{classname} - {title}',
ancestorSeparator: ' ',
suiteNameTemplate: '{filepath}',
includeConsoleOutput: true,
includeShortConsoleOutput: true,
reportTestSuiteErrors: true
}
]
],
// Environment variables for E2E tests
testEnvironmentOptions: {
env: {