Skip to content

Commit 679e86d

Browse files
committed
fix: disable the Webpack plugins which require the files from the file system as the Karma is compiling only in memory
1 parent 9939141 commit 679e86d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

resources/test/karma.conf.js

+2
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,7 @@ function setWebpack(config, options) {
102102
options.webpack = require('./webpack.config')(env);
103103
delete options.webpack.entry;
104104
delete options.webpack.output.libraryTarget;
105+
const invalidPluginsForUnitTesting = ["GenerateBundleStarterPlugin", "GenerateNativeScriptEntryPointsPlugin"];
106+
options.webpack.plugins = options.webpack.plugins.filter(p => !invalidPluginsForUnitTesting.includes(p.constructor.name));
105107
}
106108
}

0 commit comments

Comments
 (0)