/* eslint-env node */

const { JEST_NOTIFY, ENABLE_JEST_NOTIFICATIONS } = process.env

module.exports = {
  // Provides nice test output of what's being run
  verbose: true,

  // OS notifications of test results in watch mode only
  // 😢 https://github.com/facebook/jest/issues/8036
  notify: Boolean(JEST_NOTIFY) && Boolean(ENABLE_JEST_NOTIFICATIONS),

  // Test coverage can be enforced with a coverageThreshold
  collectCoverage: true,
  coverageReporters: ['text-summary'],
  collectCoverageFrom: ['src/**/*.js'],

  // Pre/Post test framework setup configs
  setupFilesAfterEnv: ['<rootDir>/test/jest-extend.js'],
}

/* eslint-env node */

const { ENABLE_JEST_NOTIFICATIONS } = process.env

module.exports = {
  // Provides nice test output of what's being run
  verbose: true,

  // OS notifications of test results is an opt in for funesies
  notify: Boolean(ENABLE_JEST_NOTIFICATIONS),

  // Test coverage can be enforced with a coverageThreshold
  collectCoverage: true,
  coverageReporters: ['text-summary'],
  collectCoverageFrom: ['src/**/*.js', '!**/*.stories.js'],

  // Pre/Post test framework setup configs
  setupFilesAfterEnv: ['<rootDir>/test/jest-extend.js'],
}

Fix test coverage metrics and enable notifications again 🎉
Test: Fix test coverage metrics and enable notifications again 🎉
