Fix karma.conf.js to only watch test.js

Karma was previously configured to watch all of the files in the pattern
which meant that any time those files changed (the autobuilder copies
them over), it triggered a rerun. This was usually before the test file
was ready to run, which caused test failures or other glitches.

This commit fixes the Karma config so that autorun test only run when
compilation has finished.
This commit is contained in:
Daniel Compton 2016-12-12 15:42:45 +13:00
parent bd18563f5d
commit 87fccd10a3
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@ module.exports = function (config) {
browsers: ['Chrome'],
files: [
root + '/../test.js', // same as :output-to
{pattern: root + '/../test.js.map', included: false},
{pattern: root + '/**/*.+(cljs|cljc|clj|js|js.map)', included: false}
{pattern: root + '/../test.js.map', included: false, watched: false},
{pattern: root + '/**/*.+(cljs|cljc|clj|js|js.map)', included: false, watched: false}
],
client: {