Skip to content

Commit c3bd0e2

Browse files
committed
dont poll config while filtering test suites
1 parent 7973da8 commit c3bd0e2

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

test/ConfigTestCases.test.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* globals describe it */
12
var should = require("should");
23
var path = require("path");
34
var fs = require("fs");
@@ -8,10 +9,6 @@ var checkArrayExpectation = require("./checkArrayExpectation");
89
var Stats = require("../lib/Stats");
910
var webpack = require("../lib/webpack");
1011

11-
function getConfig(testDirectory) {
12-
return require(path.join(testDirectory, "webpack.config.js"));
13-
}
14-
1512
describe("ConfigTestCases", function() {
1613
var casesPath = path.join(__dirname, "configCases");
1714
var categories = fs.readdirSync(casesPath);
@@ -24,8 +21,7 @@ describe("ConfigTestCases", function() {
2421
}).sort().filter(function(testName) {
2522
var testDirectory = path.join(casesPath, cat, testName);
2623
var filterPath = path.join(testDirectory, "test.filter.js");
27-
var config = getConfig(testDirectory);
28-
if(fs.existsSync(filterPath) && !require(filterPath)(config)) {
24+
if(fs.existsSync(filterPath) && !require(filterPath)()) {
2925
describe.skip(testName, function() {
3026
it('filtered');
3127
});

0 commit comments

Comments
 (0)