Skip to content

Commit

Permalink
chore(backend): configure test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
João Paulo committed Jun 28, 2020
1 parent e15e755 commit 361c48e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
1 change: 1 addition & 0 deletions backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/dist
/tmp/*
!/tmp/.gitkeep
/coverage
13 changes: 4 additions & 9 deletions backend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ module.exports = {
clearMocks: true,

// Indicates whether the coverage information should be collected while executing the test
// collectCoverage: false,
collectCoverage: true,

// An array of glob patterns indicating a set of files for which coverage information should be collected
// collectCoverageFrom: undefined,
collectCoverageFrom: ['<rootDir>/src/modules/**/services/*.ts'],

// The directory where Jest should output its coverage files
// coverageDirectory: undefined,
coverageDirectory: 'coverage',

// An array of regexp pattern strings used to skip coverage collection
// coveragePathIgnorePatterns: [
Expand All @@ -35,12 +35,7 @@ module.exports = {
coverageProvider: 'v8',

// A list of reporter names that Jest uses when writing coverage reports
// coverageReporters: [
// "json",
// "text",
// "lcov",
// "clover"
// ],
coverageReporters: ['text-summary', 'lcov'],

// An object that configures minimum threshold enforcement for coverage results
// coverageThreshold: undefined,
Expand Down

0 comments on commit 361c48e

Please sign in to comment.