jest.config.js
const { name } = require('./package')
module.exports = {
collectCoverage: true,
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/node_modules/**', '!**/index.ts'],
coverageDirectory: './.temp/coverage',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
name,
testEnvironment: 'node',
testRegex: '/src/.*\\.(test|spec)?\\.(ts|tsx)$',
transform: {
'^.+\\.ts?$': 'ts-jest'
},
testPathIgnorePatterns: ['/node_modules/', '/.temp/', '/dist/'],
verbose: true
}