nodeguy/jest.config.js
2020-02-27 08:18:18 +01:00

17 lines
644 B
JavaScript

// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
clearMocks: true,
coverageDirectory: 'coverage',
collectCoverageFrom: ['**/*.{js,jsx,ts,tsx}', '!**/node_modules/**'],
forceCoverageMatch: ['**/*.{ts,tsx,js,jsx}', '!**/*.test.{ts,tsx,js,jsx}'],
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node'],
roots: ['<rootDir>/src/lib'],
testEnvironment: 'node',
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
globalSetup: './scripts/tests/setup.js',
globalTeardown: './scripts/tests/teardown.js',
};