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:
yuneng-jiang 2026-09-01 10:35:06 -07:00 committed by GitHub
commit c71950f1e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -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 }
}

View file

@ -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",