ci: remove automatic test gates and trim test suites
This commit is contained in:
1 parent
3358b6337f
commit
2501fa59dd
20 files changed
+164
-820
No files matched your search
@@ -2,6 +2,20 @@ import react from "@vitejs/plugin-react";
|
||||
import tsconfigPaths from "vite-tsconfig-paths";
|
||||
import { configDefaults, defineConfig } from "vitest/config";
|
||||
|
||||
// Docker-backed suites are opt-in through pnpm test:integration.
|
||||
const integrationTests = [
|
||||
"**/*.integration.spec.ts",
|
||||
"packages/db/test/mysql-migration.spec.ts",
|
||||
"packages/db/test/postgresql-migration.spec.ts",
|
||||
"packages/integrations/test/aria2.spec.ts",
|
||||
"packages/integrations/test/home-assistant.spec.ts",
|
||||
"packages/integrations/test/nextcloud.spec.ts",
|
||||
"packages/integrations/test/nzbget.spec.ts",
|
||||
"packages/integrations/test/pi-hole.spec.ts",
|
||||
"packages/integrations/test/sabnzbd.spec.ts",
|
||||
"packages/integrations/test/technitium.spec.ts",
|
||||
];
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react(), tsconfigPaths()],
|
||||
test: {
|
||||
@@ -33,6 +47,7 @@ export default defineConfig({
|
||||
environment: "node",
|
||||
setupFiles: ["./vitest.setup.ts", "./vitest.setup.node.ts"],
|
||||
include: ["packages/db/test/**/*.spec.ts"],
|
||||
exclude: [...configDefaults.exclude, ...integrationTests],
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -77,15 +92,34 @@ export default defineConfig({
|
||||
"packages/docker/**",
|
||||
"packages/request-handler/**",
|
||||
"e2e/**",
|
||||
...integrationTests,
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
extends: true,
|
||||
test: {
|
||||
name: "integration",
|
||||
environment: "node",
|
||||
setupFiles: ["./vitest.setup.ts", "./vitest.setup.node.ts"],
|
||||
include: integrationTests,
|
||||
},
|
||||
},
|
||||
{
|
||||
extends: true,
|
||||
test: {
|
||||
name: "e2e",
|
||||
environment: "node",
|
||||
include: ["e2e/**/*.spec.ts"],
|
||||
exclude: [...configDefaults.exclude, "e2e/assistant-docs-screenshots.spec.ts"],
|
||||
},
|
||||
},
|
||||
{
|
||||
extends: true,
|
||||
test: {
|
||||
name: "docs-screenshots",
|
||||
environment: "node",
|
||||
include: ["e2e/assistant-docs-screenshots.spec.ts"],
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user