From d602433c3588ee9de03327dd02f30809721b73bf Mon Sep 17 00:00:00 2001 From: cap-Bernardito Date: Thu, 25 Feb 2021 16:23:09 +0300 Subject: [PATCH] test: refactor --- test/TestCases.test.js | 5 ----- test/cases/auxiliaryAssets/test.filter.js | 3 +++ 2 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 test/cases/auxiliaryAssets/test.filter.js diff --git a/test/TestCases.test.js b/test/TestCases.test.js index 541d3138..f1e5e57a 100644 --- a/test/TestCases.test.js +++ b/test/TestCases.test.js @@ -90,11 +90,6 @@ describe('TestCases', () => { clearDirectory(outputDirectory); for (const directory of tests) { - if (directory === 'auxiliaryAssets' && webpack.version[0] === '4') { - // eslint-disable-next-line no-continue - continue; - } - if (!/^(\.|_)/.test(directory)) { // eslint-disable-next-line no-loop-func it(`${directory} should compile to the expected result`, (done) => { diff --git a/test/cases/auxiliaryAssets/test.filter.js b/test/cases/auxiliaryAssets/test.filter.js new file mode 100644 index 00000000..042a0256 --- /dev/null +++ b/test/cases/auxiliaryAssets/test.filter.js @@ -0,0 +1,3 @@ +const webpack = require('webpack'); + +module.exports = () => webpack.version[0] !== '4';