Skip to content

Commit

Permalink
test: adjust karma debug config for integration and unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amoncaldas committed Nov 5, 2021
1 parent bca9890 commit fc8a2ea
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/integration/karma.debug.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ baseKarmaDebugConf.files = [

baseKarmaDebugConf.coverageReporter = null

// Do not include `coverage` reporter, since the coverage
// is only generated when running the all-tests command
baseKarmaDebugConf.preprocessors = {
'specs/*[sS]pec.js': ['webpack'],
}


// eslint-disable-next-line no-undef
module.exports = function (config) {
baseKarmaDebugConf.logLevel = config.LOG_DEBUG, //config.LOG_DISABLE, config.LOG_ERROR, config.LOG_INFO, config.LOG_DEBUG
baseKarmaDebugConf.logLevel = config.LOG_INFO, //config.LOG_DISABLE, config.LOG_ERROR, config.LOG_INFO, config.LOG_DEBUG
config.set(baseKarmaDebugConf)
}
7 changes: 7 additions & 0 deletions tests/unit/karma.debug.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ baseKarmaDebugConf.files = [

baseKarmaDebugConf.coverageReporter = null

// Do not include `coverage` reporter, since the coverage
// is only generated when running the all-tests command
baseKarmaDebugConf.preprocessors = {
'specs/*[sS]pec.js': ['webpack'],
}


// eslint-disable-next-line no-undef
module.exports = function (config) {
baseKarmaDebugConf.logLevel = config.LOG_DEBUG, //config.LOG_DISABLE, config.LOG_ERROR, config.LOG_INFO, config.LOG_DEBUG
Expand Down

0 comments on commit fc8a2ea

Please sign in to comment.