mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
Merge pull request #39082 from BerriAI/litellm_/ui-tests-audit-plan-510626
test(ui): budget DOM-structure assertions in dashboard tests
This commit is contained in:
commit
c71950f1e9
2 changed files with 7 additions and 1 deletions
|
|
@ -4,5 +4,8 @@
|
|||
"complexity": { "max": 140, "target": 80 },
|
||||
"max-depth": { "max": 70, "target": 30 },
|
||||
"local/no-large-inline-object-arg": { "max": 559, "target": 300 },
|
||||
"local/no-long-condition-chain": { "max": 265, "target": 120 }
|
||||
"local/no-long-condition-chain": { "max": 265, "target": 120 },
|
||||
"testing-library/no-container": { "max": 150, "target": 50 },
|
||||
"testing-library/no-node-access": { "max": 760, "target": 500 },
|
||||
"testing-library/prefer-screen-queries": { "max": 221, "target": 0 }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,10 +104,13 @@ const eslintConfig = [
|
|||
plugins: { "testing-library": testingLibrary, "jest-dom": jestDom },
|
||||
rules: {
|
||||
"testing-library/await-async-queries": "error",
|
||||
"testing-library/no-container": "warn",
|
||||
"testing-library/no-node-access": "warn",
|
||||
"testing-library/no-wait-for-multiple-assertions": "error",
|
||||
"testing-library/no-wait-for-side-effects": "error",
|
||||
"testing-library/prefer-find-by": "error",
|
||||
"testing-library/prefer-presence-queries": "error",
|
||||
"testing-library/prefer-screen-queries": "warn",
|
||||
"jest-dom/prefer-checked": "error",
|
||||
"jest-dom/prefer-empty": "error",
|
||||
"jest-dom/prefer-enabled-disabled": "error",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue