mirror of
https://github.com/strapi/strapi.git
synced 2025-08-09 01:07:27 +00:00
8 lines
223 B
TypeScript
8 lines
223 B
TypeScript
import { test } from '@playwright/test';
|
|
|
|
/**
|
|
* Execute a test suite only if the condition is true
|
|
*/
|
|
export const describeOnCondition = (shouldDescribe: boolean) =>
|
|
shouldDescribe ? test.describe : test.describe.skip;
|