devlato/react-shortcut

View on GitHub
jest.config.js

Summary

Maintainability
A
0 mins
Test Coverage
// eslint-disable-next-line @typescript-eslint/no-var-requires
const os = require('os');

module.exports = {
  preset: 'ts-jest',
  automock: false,
  browser: true,
  clearMocks: true,
  resetMocks: true,
  resetModules: true,
  collectCoverage: true,
  displayName: 'ReactHotKey',
  maxConcurrency: os.cpus().length,
  testURL: 'http://localhost',
  moduleDirectories: ['node_modules', 'src'],
  setupFilesAfterEnv: ['<rootDir>/.jest/setup_before_test_case.js'],
  testPathIgnorePatterns: ['node_modules', '.cache', 'coverage'],
  testRegex: '(/tests/.*|(\\.|/)(tests|spec))\\.[jt]sx?$',
};