How to use the ts-jest/presets.defaults.testMatch function in ts-jest

To help you get started, we’ve selected a few ts-jest 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 vrk-kpa / suomifi-ui-components / jest.config.js View on Github external
],
  coverageThreshold: {
    global: {
      branches: 30,
      functions: 30,
      lines: 40,
      statements: 50,
    },
  },

  transform: {
    ...tsjPreset.transform,
    '\\.(svg)$': '/jest.transformer.js',
  },

  testMatch: tsjPreset.testMatch,
  moduleFileExtensions: tsjPreset.moduleFileExtensions,

  setupFilesAfterEnv: [require.resolve('./jest.setup.js')],

  moduleNameMapper: {
    '\\.css$': '/jest.styleMock.js',
  },
};