diff --git a/packages/vitest/src/typecheck/collect.ts b/packages/vitest/src/typecheck/collect.ts index 12c7c988331b..66a239d052d1 100644 --- a/packages/vitest/src/typecheck/collect.ts +++ b/packages/vitest/src/typecheck/collect.ts @@ -97,6 +97,13 @@ export async function collectTests( // call as `__vite_ssr__.test.skip()` return getName(callee.object?.property) } + // unwrap (0, ...) + if (callee.type === 'SequenceExpression' && callee.expressions.length === 2) { + const [e0, e1] = callee.expressions + if (e0.type === 'Literal' && e0.value === 0) { + return getName(e1) + } + } return null }