Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

try to improve test reliability

pythongosssss8680ac3dfd51
diff --git a/.github/workflows/test-ui.yaml b/.github/workflows/test-ui.yaml
index 950691755..4b8b97934 100644
--- a/.github/workflows/test-ui.yaml
+++ b/.github/workflows/test-ui.yaml
@@ -22,5 +22,5 @@ jobs:
run: |
npm ci
npm run test:generate
- npm test
+ npm test -- --verbose
working-directory: ./tests-ui
diff --git a/tests-ui/afterSetup.js b/tests-ui/afterSetup.js
new file mode 100644
index 000000000..983f3af64
--- /dev/null
+++ b/tests-ui/afterSetup.js
@@ -0,0 +1,9 @@
+const { start } = require("./utils");
+const lg = require("./utils/litegraph");
+
+// Load things once per test file before to ensure its all warmed up for the tests
+beforeAll(async () => {
+ lg.setup(global);
+ await start({ resetEnv: true });
+ lg.teardown(global);
+});
diff --git a/tests-ui/jest.config.js b/tests-ui/jest.config.js
index b5a5d646d..86fff5057 100644
--- a/tests-ui/jest.config.js
+++ b/tests-ui/jest.config.js
@@ -2,8 +2,10 @@
const config = {
testEnvironment: "jsdom",
setupFiles: ["./globalSetup.js"],
+ setupFilesAfterEnv: ["./afterSetup.js"],
clearMocks: true,
resetModules: true,
+ testTimeout: 10000
};
module.exports = config;