EndemolShineGroup/serverless-dynamodb-autoscaler

View on GitHub
jest.config.js

Summary

Maintainability
A
0 mins
Test Coverage
const preset = require('ts-jest').jestPreset;

module.exports = {
  preset: 'ts-jest',
  collectCoverage: false,
  coveragePathIgnorePatterns: [
    '/node_modules/',
    '/tests/',
    '/__fixtures__/',
  ],
  globals: {
    'ts-jest': {
      tsConfig: "tsconfig.test.json",
    },
  },
  // @TODO Uncomment the following lines once test coverage has reached an acceptable threshold
  // 'coverageThreshold': {
  //   'global': {
  //     'branches': 90,
  //     'functions': 95,
  //     'lines': 95,
  //     'statements': 95
  //   }
  // },
  moduleDirectories: [
    'src',
    'node_modules',
  ],
  testMatch: [
    ...preset.testMatch,
    '**/?(*.)+(spec|integ|test).ts?(x)',
  ],
  transformIgnorePatterns: [
    '<rootDir>/node_modules/',
  ],
};