Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
ba3f3aa1
Commit
ba3f3aa1
authored
Dec 19, 2023
by
comfyanonymous
Browse files
Merge branch 'test-reliability' of
https://github.com/pythongosssss/ComfyUI
parents
e65110fd
8680ac3d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
.github/workflows/test-ui.yaml
.github/workflows/test-ui.yaml
+1
-1
tests-ui/afterSetup.js
tests-ui/afterSetup.js
+9
-0
tests-ui/jest.config.js
tests-ui/jest.config.js
+2
-0
No files found.
.github/workflows/test-ui.yaml
View file @
ba3f3aa1
...
@@ -22,5 +22,5 @@ jobs:
...
@@ -22,5 +22,5 @@ jobs:
run
:
|
run
:
|
npm ci
npm ci
npm run test:generate
npm run test:generate
npm test
npm test
-- --verbose
working-directory
:
./tests-ui
working-directory
:
./tests-ui
tests-ui/afterSetup.js
0 → 100644
View file @
ba3f3aa1
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
);
});
tests-ui/jest.config.js
View file @
ba3f3aa1
...
@@ -2,8 +2,10 @@
...
@@ -2,8 +2,10 @@
const
config
=
{
const
config
=
{
testEnvironment
:
"
jsdom
"
,
testEnvironment
:
"
jsdom
"
,
setupFiles
:
[
"
./globalSetup.js
"
],
setupFiles
:
[
"
./globalSetup.js
"
],
setupFilesAfterEnv
:
[
"
./afterSetup.js
"
],
clearMocks
:
true
,
clearMocks
:
true
,
resetModules
:
true
,
resetModules
:
true
,
testTimeout
:
10000
};
};
module
.
exports
=
config
;
module
.
exports
=
config
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment