CI test hangs, local tests pass #7426
Unanswered
charlieforward9
asked this question in
Q&A
Replies: 1 comment 6 replies
-
So on CI the tests pass but it gets stuck while reporting coverage? Maybe the overwritten - import { defineConfig } from 'vitest/config'
+ import { coverageConfigDefaults, defineConfig } from 'vitest/config'
export default defineConfig({
test: {
coverage: {
- exclude: ["src/tests/*", "**/__tests__/*"],
+ exclude: ["src/tests/*", "**/__tests__/*", ...coverageConfigDefaults.exclude],
},
},
}) |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a workflow file that calls
npx vitest --coverage.enabled true
. When I run this command locally, my tests pass and I see a coverage report within 40 seconds, however, when I push the changes to GH, the workflow runs indefinitely, hanging and providing me with no information or timeout.Please advise on how to debug this. This is my test config:
Problem persists on v2 and v3
Beta Was this translation helpful? Give feedback.
All reactions