Skip to content

Commit

Permalink
feat(test-utils): conditionalDescribe
Browse files Browse the repository at this point in the history
  • Loading branch information
karliatto committed Oct 24, 2024
1 parent 2f3ecbe commit b49f748
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions suite-common/test-utils/src/conditionalDescribe.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export const conditionalDescribe = (
skipCondition: boolean,
title: string,
fn: jest.EmptyFunction,
) => {
if (skipCondition) {
describe.skip(title, fn);
} else {
describe(title, fn);
}
};
1 change: 1 addition & 0 deletions suite-common/test-utils/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './mocks';
export * from './configureMockStore';
export * from './extraDependenciesMock';
export * from './conditionalDescribe';

0 comments on commit b49f748

Please sign in to comment.