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:
parent
bd18563f5d
commit
87fccd10a3
|
@ -7,8 +7,8 @@ module.exports = function (config) {
|
||||||
browsers: ['Chrome'],
|
browsers: ['Chrome'],
|
||||||
files: [
|
files: [
|
||||||
root + '/../test.js', // same as :output-to
|
root + '/../test.js', // same as :output-to
|
||||||
{pattern: root + '/../test.js.map', included: false},
|
{pattern: root + '/../test.js.map', included: false, watched: false},
|
||||||
{pattern: root + '/**/*.+(cljs|cljc|clj|js|js.map)', included: false}
|
{pattern: root + '/**/*.+(cljs|cljc|clj|js|js.map)', included: false, watched: false}
|
||||||
],
|
],
|
||||||
|
|
||||||
client: {
|
client: {
|
||||||
|
|
Loading…
Reference in New Issue