test(TestCases): don't return a value at `describe.skip` and `it`
This commit is contained in:
parent
dc26688731
commit
71e24cf36c
|
@ -61,7 +61,9 @@ const describeCases = config => {
|
||||||
const testDirectory = path.join(casesPath, category.name, test);
|
const testDirectory = path.join(casesPath, category.name, test);
|
||||||
const filterPath = path.join(testDirectory, "test.filter.js");
|
const filterPath = path.join(testDirectory, "test.filter.js");
|
||||||
if (fs.existsSync(filterPath) && !require(filterPath)(config)) {
|
if (fs.existsSync(filterPath) && !require(filterPath)(config)) {
|
||||||
describe.skip(test, () => it("filtered"));
|
describe.skip(test, () => {
|
||||||
|
it("filtered", () => {});
|
||||||
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue