Skip to content

Commit

Permalink
chore: rename local monitor file to correspond the actual behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
PauloGoncalvesBH committed Sep 13, 2023
1 parent fbfe655 commit 0d21a87
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ sonar.projectVersion=1.0
sonar.sources=src/
sonar.javascript.lcov.reportPaths=lcov.info
sonar.sourceEncoding=UTF-8
sonar.exclusions=docs/**, test/**, .husky/**, .github/**, coverage-*/**, .nyc_output/**, reports/**, src/server.js, src/utils/logger.js, src/utils/ambiente.js
sonar.exclusions=docs/**, test/**, .husky/**, .github/**, coverage-*/**, .nyc_output/**, reports/**, src/server.js, src/utils/localMonitor.js, src/utils/ambiente.js
sonar.tests=test
4 changes: 2 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const {
} = require('./utils/ambiente')
const { conf } = require('./utils/conf')
const errorHandler = require('./middlewares/error-handler')
const logger = require('./utils/logger')
const localMonitor = require('./utils/localMonitor')
const { version } = require('../package.json')
const swaggerDocument = require('../docs/swagger.json')
const packageJson = require('../package.json')
Expand Down Expand Up @@ -60,7 +60,7 @@ if (aplicacaoExecutandoLocalmente() && !ehAmbienteDeTestes) {
app.use(require('express-status-monitor')({ title: 'ServeRest Status' }))
}

logger(app)
localMonitor(app)

/* istanbul ignore next */
switch (formaDeExecucao()) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/logger.js → src/utils/localMonitor.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* istanbul ignore file */

/*
O monitoramento está em arquivo apartado (logger.js), e não no 'app.js',
O monitoramento está em arquivo apartado (localMonitor.js), e não no 'app.js',
para não ser afetado pelo teste de mutação.
Esse arquivo está marcado para ser ignorado no arquivo stryker.conf.js
Expand Down
2 changes: 1 addition & 1 deletion test/stryker.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
mutate: [
'src/**/*.js',
'!src/server.js',
'!src/utils/logger.js',
'!src/utils/localMonitor.js',
'!src/utils/ambiente.js'
],
thresholds: {
Expand Down

0 comments on commit 0d21a87

Please sign in to comment.