Files
2026-07-13 12:10:05 +08:00

10 lines
208 B
TypeScript

import { beforeEach } from 'vitest';
export function skipTests(names: string[]) {
beforeEach((ctx) => {
if (ctx.task.suite?.name === 'common' && names.includes(ctx.task.name)) {
ctx.skip();
}
});
}