packages/dx/config/jest.config.js
module.exports = {
rootDir: process.cwd(),
coverageDirectory: './coverage',
testEnvironment: 'node',
coverageReporters: [
'lcov',
'text'
],
collectCoverageFrom: [
'<rootDir>/src/**/*.{ts,js}'
],
testMatch: [
'<rootDir>/spec/**/*.spec.{ts,tsx,js}'
],
transform: {
'^.+\\.[t|j]sx?$': 'ts-jest',
'^.+\\.mjs$': 'ts-jest',
},
};