Skip to content

Commit

Permalink
Add vitest coverage
Browse files Browse the repository at this point in the history
tiagofilipenunes committed Jul 5, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent 357e073 commit 0e613e4
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -35,6 +35,7 @@
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"@vitejs/plugin-react": "^4.3.1",
"@vitest/coverage-v8": "^1.6.0",
"autoprefixer": "^10.4.12",
"body-scroll-lock": "^4.0.0-beta.0",
"buffer": "^6.0.3",
@@ -101,6 +102,7 @@
"serve": "vite preview",
"pretest": "yarn compile-abis",
"test": "vitest run --mode production",
"coverage": "yarn test --coverage",
"pree2e": "yarn playwright install --with-deps chromium",
"e2e": "playwright test",
"lint": "eslint --ext .tsx,.ts .",
5 changes: 5 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -15,6 +15,11 @@ export default defineConfig({
inline: ['/@bancor/carbon-sdk/'],
},
},
coverage: {
reporter: ['text', 'json', 'html'],
include: ['**/src/**'],
exclude: ['**/src/abis/**'],
},
},
plugins: [tsconfigPaths(), svgrPlugin()],
});

0 comments on commit 0e613e4

Please sign in to comment.