Skip to content

Commit 97ab36c

Browse files
author
Dimitar Tachev
authored
Merge pull request #4704 from NativeScript/tachev/fix-karma-webpack
fix: disable the Webpack plugins which require the files from the file system
2 parents 5c9ca5c + 679e86d commit 97ab36c

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)