chore(CI): fix codecov reporter (#12210)

* chore(CI): update codecov/codecov-action to v3

* chore: use default test reporter

* chore: use text-summary

* chore: update coverage dir

* chore: switch to istanbul

* chore: use lcov

* chore: fix open:coverage path
This commit is contained in:
neverland
2023-08-20 19:55:39 +08:00
committed by GitHub
parent 694daef6ea
commit 87ed409842
4 changed files with 27 additions and 34 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ export default defineConfig({
test: {
globals: true,
coverage: {
provider: 'istanbul',
include: ['src/**/*.[jt]s?(x)'],
exclude: [
'src/lazyload/vue-lazyload/**',
@@ -16,7 +17,7 @@ export default defineConfig({
'**/test/**',
'**/lang/**',
],
reporter: ['html', 'lcov', 'text-summary'],
reporter: ['lcov', 'text-summary'],
reportsDirectory: './test/coverage',
},
environment: 'jsdom',