Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Use global workers setting in app test config (#3251)

Koen9a1f19cf44c2
diff --git a/ui/test/app.config.cts b/ui/test/app.config.cts
index 397ab7871..70f8c2ce7 100644
--- a/ui/test/app.config.cts
+++ b/ui/test/app.config.cts
@@ -52,12 +52,10 @@ function createAppSetupAndTeardown(app: string) {
name: `setup ${app}`,
testMatch: "**/*.setup.ts",
teardown: `cleanup ${app}`,
- worker: 1,
},
{
name: `cleanup ${app}`,
testMatch: "**/*.cleanup.ts",
- worker: 1,
},
];
}
@@ -89,6 +87,7 @@ export const defineAppConfig = (path: string) => {
url: "http://localhost:8080",
reuseExistingServer: !process.env.CI,
},
+ workers: 1,
/* Configure projects */
projects: [
...createAppSetupAndTeardown(name),
@@ -97,7 +96,6 @@ export const defineAppConfig = (path: string) => {
testDir: resolve(path, "test"),
fullyParallel: false,
dependencies: [`setup ${name}`],
- workers: 1,
...browser,
})),
],