How to use the jest-config.defaults.watchPathIgnorePatterns function in jest-config

To help you get started, we’ve selected a few jest-config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github silvenon / silvenon.com / jest.config.js View on Github external
const { defaults } = require('jest-config')

module.exports = {
  testPathIgnorePatterns: [
    ...defaults.testPathIgnorePatterns,
    '/.cache/',
  ],
  watchPathIgnorePatterns: [
    ...defaults.watchPathIgnorePatterns,
    '/.cache/',
    '/public/',
  ],
  moduleNameMapper: {
    '\\.css$': 'identity-obj-proxy',
  },
}