diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2210805d..2e403821 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,6 @@ jobs: - name: Install Dependencies run: npm install - run: npm run lint - - run: npm run test + - run: npm run test --collectCoverage - run: npm run release - uses: codecov/codecov-action@v1 diff --git a/jest.config.js b/jest.config.js index 6123202a..468480f9 100644 --- a/jest.config.js +++ b/jest.config.js @@ -10,6 +10,7 @@ module.exports = { transform: { '^.+\\.tsx?$': 'ts-jest', }, + collectCoverageFrom: ['src/**/**.ts', 'src/**/**.tsx'], testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$', testPathIgnorePatterns: ['/lib/', '/node_modules/'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],