Skip to content

Commit

Permalink
add(vest): declarative conditional "include" for linking fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Jan 8, 2022
1 parent 6b4f894 commit 3fc3131
Show file tree
Hide file tree
Showing 8 changed files with 1,332 additions and 102 deletions.
2 changes: 2 additions & 0 deletions packages/vest/src/core/ctx/ctx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default createContext<CTXType>((ctxRef, parentContext) =>
tests: {},
groups: {},
},
inclusion: {},
isolate: {
type: IsolateTypes.DEFAULT,
keys: {
Expand All @@ -40,6 +41,7 @@ type CTXType = {
tests: Record<string, boolean>;
groups: Record<string, boolean>;
};
inclusion: Record<string, boolean | (() => boolean)>;
currentTest?: VestTest;
groupName?: string;
skipped?: boolean;
Expand Down
Loading

0 comments on commit 3fc3131

Please sign in to comment.