test(TestCases): don't return a value at `describe.skip` and `it`

This commit is contained in:
Yuta Hiroto 2019-03-28 22:14:52 +00:00
parent dc26688731
commit 71e24cf36c
No known key found for this signature in database
GPG Key ID: E03998F3E2B165C2
1 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,9 @@ const describeCases = config => {
const testDirectory = path.join(casesPath, category.name, test);
const filterPath = path.join(testDirectory, "test.filter.js");
if (fs.existsSync(filterPath) && !require(filterPath)(config)) {
describe.skip(test, () => it("filtered"));
describe.skip(test, () => {
it("filtered", () => {});
});
return false;
}
return true;