From cacbeca5a76a835baa5e4f16680405b34dca101a Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Thu, 23 Jul 2020 16:11:30 +0530 Subject: [PATCH] test coverage added --- libs/remix-tests/jest.config.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libs/remix-tests/jest.config.js b/libs/remix-tests/jest.config.js index 1fe82f05e3..2662a3a2e6 100644 --- a/libs/remix-tests/jest.config.js +++ b/libs/remix-tests/jest.config.js @@ -6,8 +6,18 @@ module.exports = { transform: { '^.+\\.[tj]sx?$': 'ts-jest', }, + rootDir: "./", testTimeout: 30000, - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html', 'json', 'sol'], - coverageDirectory: '../../coverage/libs/remix-tests' + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html', 'json'], + // Coverage + collectCoverage: true, + coverageReporters: ['text', 'text-summary'], + collectCoverageFrom: [ + "**/*.ts", + "!**/sol/**", + "!src/types.ts", + "!src/logger.ts" + ], + coverageDirectory: '../../coverage/libs/remix-tests', }; \ No newline at end of file