Skip to content

Commit

Permalink
Merge pull request #353 from weni-ai/feature/codecov
Browse files Browse the repository at this point in the history
[ENGAGE-1240] Codecov
  • Loading branch information
Aldemylla authored Jul 22, 2024
2 parents 44991ae + f07603f commit ca2ea9e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Run lint
run: yarn lint --fix
- name: Run Unit Tests
run: yarn test:unit
run: yarn test:unit:coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<img src="https://github.com/Ilhasoft/weni-webapp/raw/main/src/assets/LogoWeniAnimada.svg" height="100" />

[![codecov](https://codecov.io/gh/weni-ai/ia-platform-frontend/branch/main/graph/badge.svg)](https://codecov.io/gh/weni-ai/ia-platform-frontend) [![License: MPL 2.0](https://img.shields.io/badge/License-MPL_2.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0)
[![codecov](https://codecov.io/github/weni-ai/ia-platform-frontend/graph/badge.svg?token=KKE4WY9NBQ)](https://codecov.io/github/weni-ai/ia-platform-frontend) [![License: MPL 2.0](https://img.shields.io/badge/License-MPL_2.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0)

*This project is a module of [Weni](https://github.com/weni-ai) integrated inside [Weni WebApp (Connect)](https://github.com/weni-ai/weni-webapp)*

Expand Down
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const config = {
'.*\\.(js)$': 'babel-jest',
},
automock: false,
coverageReporters: ['text', 'json'],
coverageDirectory: '../tests/unit/coverage',
};

module.exports = config;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"start": "concurrently \"node --watch mock/server.mjs\" \"vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint\"",
"build": "vue-cli-service build",
"test:unit": "vue-cli-service test:unit",
"test:unit:coverage": "vue-cli-service test:unit --coverage",
"lint": "vue-cli-service lint"
},
"dependencies": {
Expand Down

0 comments on commit ca2ea9e

Please sign in to comment.