From 71e24cf36c0e6198af2229eda27ea40a7f438d6a Mon Sep 17 00:00:00 2001 From: Yuta Hiroto Date: Thu, 28 Mar 2019 22:14:52 +0000 Subject: [PATCH] test(TestCases): don't return a value at `describe.skip` and `it` --- test/TestCases.template.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/TestCases.template.js b/test/TestCases.template.js index c0f20c399..b7c3110cf 100644 --- a/test/TestCases.template.js +++ b/test/TestCases.template.js @@ -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;