mirror of
https://github.com/gethomepage/homepage.git
synced 2026-02-08 00:40:52 +08:00
test: exclude registries/config files from coverage
This commit is contained in:
@@ -74,5 +74,5 @@ export default defineConfig([
|
||||
"import/order": "off",
|
||||
},
|
||||
},
|
||||
globalIgnores(["./config/", "./.venv/", "./.next/", "./site/"]),
|
||||
globalIgnores(["./config/", "./coverage/", "./.venv/", "./.next/", "./site/"]),
|
||||
]);
|
||||
|
||||
@@ -22,5 +22,20 @@ export default defineConfig({
|
||||
environment: "node",
|
||||
setupFiles: ["./vitest.setup.js"],
|
||||
include: ["src/**/*.test.{js,jsx}", "src/**/*.spec.{js,jsx}"],
|
||||
coverage: {
|
||||
provider: "v8",
|
||||
exclude: [
|
||||
"src/widgets/widgets.js",
|
||||
"src/widgets/components.js",
|
||||
"src/skeleton/custom.js",
|
||||
"next-i18next.config.js",
|
||||
"next.config.js",
|
||||
"postcss.config.js",
|
||||
"tailwind.config.js",
|
||||
"eslint.config.mjs",
|
||||
"vitest.config.mjs",
|
||||
".prettierrc.js",
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user