Skip to content

Commit 3fc3131

Browse files
committed
add(vest): declarative conditional "include" for linking fields
1 parent 6b4f894 commit 3fc3131

File tree

8 files changed

+1332
-102
lines changed

8 files changed

+1332
-102
lines changed

packages/vest/src/core/ctx/ctx.ts

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default createContext<CTXType>((ctxRef, parentContext) =>
1616
tests: {},
1717
groups: {},
1818
},
19+
inclusion: {},
1920
isolate: {
2021
type: IsolateTypes.DEFAULT,
2122
keys: {
@@ -40,6 +41,7 @@ type CTXType = {
4041
tests: Record<string, boolean>;
4142
groups: Record<string, boolean>;
4243
};
44+
inclusion: Record<string, boolean | (() => boolean)>;
4345
currentTest?: VestTest;
4446
groupName?: string;
4547
skipped?: boolean;

0 commit comments

Comments
 (0)