/ jest.config.js
jest.config.js
 1  module.exports = {
 2    preset: 'ts-jest',
 3    testEnvironment: 'node',
 4    transform: {
 5      '^.+\\.tsx?$': [
 6        'ts-jest',
 7        // required due to custom location of tsconfig.json configuration file
 8        // https://kulshekhar.github.io/ts-jest/docs/getting-started/options/tsconfig
 9        { diagnostics: false },
10      ],
11    },
12    collectCoverage: true,
13    collectCoverageFrom: ['**/src/*.{ts,tsx}'],
14    coverageDirectory: './coverage/',
15  };