fix(ci): resolve jest coverage command error

- Replace npx jest with npm run test:ci in CI coverage job
- Update test:ci script to match original command pattern
- Ensures jest is properly available through npm scripts

Fixes #91

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ClaudeBot
2025-05-27 18:37:29 +00:00
parent 8b89ce741f
commit 8788a87ff6
2 changed files with 2 additions and 2 deletions

View File

@@ -111,7 +111,7 @@ jobs:
run: npm ci --prefer-offline --no-audit
- name: Generate test coverage
run: npx jest --coverage --testPathPattern='test/(unit|integration).*\.test\.js$'
run: npm run test:ci
env:
NODE_ENV: test
BOT_USERNAME: '@TestBot'

View File

@@ -11,7 +11,7 @@
"test:e2e": "jest --testMatch='**/test/e2e/**/*.test.js'",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"test:ci": "jest --ci --coverage",
"test:ci": "jest --ci --coverage --testPathPattern='test/(unit|integration).*\\.test\\.js$'",
"pretest": "./scripts/utils/ensure-test-dirs.sh",
"lint": "eslint src/ test/ --fix",
"lint:check": "eslint src/ test/",