Expose text report for unit test code coverage
Summary: At the request of msys Reviewed By: lblasa Differential Revision: D38740940 fbshipit-source-id: 25722144037ce404ef7572e9553037e7344c6955
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a46a0d6ed5
commit
5e818edc2f
@@ -22,7 +22,12 @@ module.exports = {
|
|||||||
'^flipper-(pkg|pkg-lib|doctor|test-utils)$': '<rootDir>/$1/src',
|
'^flipper-(pkg|pkg-lib|doctor|test-utils)$': '<rootDir>/$1/src',
|
||||||
},
|
},
|
||||||
clearMocks: true,
|
clearMocks: true,
|
||||||
coverageReporters: ['json-summary', 'lcov', 'html'],
|
coverageReporters: [
|
||||||
|
'json-summary',
|
||||||
|
'lcov',
|
||||||
|
'html',
|
||||||
|
...(process.env.COVERAGE_TEXT === 'detailed' ? ['text'] : []),
|
||||||
|
],
|
||||||
testMatch: ['**/**.(node|spec).(js|jsx|ts|tsx)'],
|
testMatch: ['**/**.(node|spec).(js|jsx|ts|tsx)'],
|
||||||
testEnvironment: 'jest-environment-jsdom-sixteen',
|
testEnvironment: 'jest-environment-jsdom-sixteen',
|
||||||
resolver: '<rootDir>/jest.resolver.js',
|
resolver: '<rootDir>/jest.resolver.js',
|
||||||
|
|||||||
Reference in New Issue
Block a user