/*
 * For a detailed explanation regarding each configuration property, visit:
 * https://jestjs.io/docs/en/configuration.html
 */

module.exports = {
  collectCoverageFrom: ['src/**/*.js', '!test'],
  coverageDirectory: 'coverage',
  coverageThreshold: {
    global: {
      statements: 70,
      branches: 0,
      functions: 90,
      lines: 80
    }
  },
  errorOnDeprecated: true,
  rootDir: '../',
  testEnvironment: 'node',
  testMatch: ['<rootDir>/src/**/?(*.)test.js?(x)']
}
