diff --git a/test/HotTestCases.template.js b/test/HotTestCases.template.js index 480882fb0..d9ca3b1d5 100644 --- a/test/HotTestCases.template.js +++ b/test/HotTestCases.template.js @@ -27,15 +27,18 @@ const describeCases = config => { categories.forEach(category => { describe(category.name, () => { category.tests.forEach(testName => { + const testDirectory = path.join(casesPath, category.name, testName); + const filterPath = path.join(testDirectory, "test.filter.js"); + if (fs.existsSync(filterPath) && !require(filterPath)()) { + describe.skip(testName, () => { + it("filtered", () => {}); + }); + return; + } describe(testName, () => { it( testName + " should compile", done => { - const testDirectory = path.join( - casesPath, - category.name, - testName - ); const outputDirectory = path.join( __dirname, "js", diff --git a/test/hotCases/worker/update-in-worker/test.filter.js b/test/hotCases/worker/update-in-worker/test.filter.js new file mode 100644 index 000000000..703962334 --- /dev/null +++ b/test/hotCases/worker/update-in-worker/test.filter.js @@ -0,0 +1,5 @@ +var supportsWorker = require("../../../helpers/supportsWorker"); + +module.exports = function (config) { + return supportsWorker(); +};