diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-10-16 14:44:15 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-10-16 14:44:15 +0300 |
commit | e5666cc9e9f106c3347f027af402b9d6d37efa75 (patch) | |
tree | 3ea53904b03f970f396bd58d05398b6a6d29d663 /karma.conf.js | |
parent | e0b19261d97e049bac0769b52627c4719757b3e4 (diff) |
Fix js test execution
The app must not be started, otherwise random stuff breaks
as timers, http requests and DOM manipulation is done in
the background.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'karma.conf.js')
-rw-r--r-- | karma.conf.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/karma.conf.js b/karma.conf.js index db798c332..65447866c 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -3,6 +3,12 @@ var webpackConfig = require('./js/webpack.config.js'); +webpackConfig.entry = './js/tests/noop_init.js'; +webpackConfig.module.rules.push({ + test: /\.js$/, + exclude: /init\.js/ +}); + module.exports = function (config) { config.set({ // frameworks to use |