10 lines
208 B
TypeScript
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();
|
|
}
|
|
});
|
|
}
|