IssueHunter candidate 771965045901: fix for issue #7995 (#7996)

This commit is contained in:
LuckVd 2026-11-08 14:06:04 +08:00 committed by GitHub
parent 91f20a782f
commit 284e0d537d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -62,6 +62,9 @@ docker/
skills/
frontend/.next
frontend/node_modules
# Frontend unit tests can import fixtures outside frontend/ (for example, examples/),
# so exclude them from the frontend-only Docker build context.
frontend/tests
backend/.venv
backend/htmlcov
backend/.coverage

View File

@ -192,6 +192,12 @@ def test_build_inputs_are_still_included(build_input: str) -> None:
assert not _is_excluded(patterns, build_input), f"{build_input} is needed by the build but is excluded"
def test_frontend_unit_tests_are_excluded_from_build_context() -> None:
patterns = _ignore_patterns()
path = "frontend/tests/unit/core/extensions/bookmarks.test.ts"
assert _is_excluded(patterns, path), f"{path} imports examples/ outside the frontend Docker build context"
@pytest.mark.parametrize(
"name",
[".env", ".env.local", ".env.production", *sorted(extension_manager._SENSITIVE_FILENAMES), *(f"secret{suffix}" for suffix in sorted(extension_manager._SENSITIVE_SUFFIXES))],