Skip to content

Commit 59fc255

Browse files
sampaiodiegoggazzo
authored andcommitted
test: add failing to qase override
1 parent 09cfc96 commit 59fc255

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

ee/packages/federation-matrix/tests/setup-qase.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,20 @@ function describeImpl(name: string, fn: () => void): void {
8686
suitePathStack.pop();
8787
}
8888
},
89+
failing: (name: string, fn: () => void) => {
90+
suitePathStack.push(name);
91+
try {
92+
currentIt.skip(name, fn);
93+
} finally {
94+
suitePathStack.pop();
95+
}
96+
},
8997
todo: (name: string) => {
9098
suitePathStack.push(name);
9199
try {
92-
currentIt.todo(name);
100+
currentIt.skip(name, () => {
101+
// noop
102+
});
93103
} finally {
94104
suitePathStack.pop();
95105
}

0 commit comments

Comments
 (0)