Skip to content

Commit

Permalink
types(vest): export SuiteSummary type
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Mar 21, 2022
1 parent bec71a8 commit 16a2059
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/vest/src/exports/classnames.ts
Expand Up @@ -8,15 +8,15 @@ import { parse } from 'parser';
*/
export default function classnames(
res: SuiteSummary,
classes: TSupportedClasses = {}
classes: SupportedClasses = {}
): (fieldName: string) => string {
const selectors = parse(res);

return (key: string): string => {
const classesArray: string[] = [];

for (const selector in classes) {
const sel = selector as keyof TSupportedClasses;
const sel = selector as keyof SupportedClasses;
if (isFunction(selectors[sel]) && selectors[sel](key)) {
classesArray.push(classes[sel] as string);
}
Expand All @@ -26,7 +26,7 @@ export default function classnames(
};
}

type TSupportedClasses = {
type SupportedClasses = {
valid?: string;
tested?: string;
invalid?: string;
Expand Down
6 changes: 3 additions & 3 deletions packages/vest/src/vest.ts
@@ -1,11 +1,11 @@
import { enforce } from 'n4s';

import create, { Suite } from './core/suite/create';

import VestTest from 'VestTest';
import create, { Suite } from 'create';
import context from 'ctx';
import each from 'each';
import { only, skip } from 'exclusive';
import type { SuiteSummary } from 'genTestsSummary';
import group from 'group';
import include from 'include';
import { eager } from 'mode';
Expand Down Expand Up @@ -36,4 +36,4 @@ export {
eager,
};

export type { SuiteResult, SuiteRunResult, VestTest, Suite };
export type { SuiteResult, SuiteRunResult, SuiteSummary, VestTest, Suite };

1 comment on commit 16a2059

@vercel
Copy link

@vercel vercel bot commented on 16a2059 Mar 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vest-next – ./website

vest-next-git-latest-ealush.vercel.app
vest-next-ealush.vercel.app
vest-website.vercel.app
vest-next.vercel.app

Please sign in to comment.