Skip to content

Commit

Permalink
feat: Updated jest.config.unit.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Jan 27, 2024
1 parent d987402 commit b911267
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jest.config.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ const jestConfigUnit = require('./jest.config.base');
module.exports = {
...jestConfigUnit,
collectCoverage: true,
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/__tests__/**/*.unit.[jt]s?(x)', '**/?(*.)+(spec|test).unit.[jt]s?(x)'],
collectCoverageFrom: ['src/**/*.ts'],
coverageReporters: ['lcov', 'text-summary'],
coverageDirectory: 'coverage/unit',

collectCoverageFrom: ['src/**/*.ts', '!src/utils/create_tests.ts'],

testPathIgnorePatterns: [...jestConfigUnit.testPathIgnorePatterns, path.resolve(__dirname, 'tests')],
testRegex: '.*\\.tests\\.ts$',
};

0 comments on commit b911267

Please sign in to comment.