mirror of
https://github.com/claude-did-this/claude-hub.git
synced 2026-02-14 19:30:02 +01:00
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:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -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'
|
||||
|
||||
@@ -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/",
|
||||
|
||||
Reference in New Issue
Block a user