Compare commits

...

2 Commits

Author SHA1 Message Date
245169c01e Fixing jest error.
Some checks failed
Tests / Build and Push CICD Image (push) Successful in 24m39s
Tests / Trailing Whitespace Check (push) Successful in 6m14s
Tests / YAML Syntax Check (push) Successful in 57s
Tests / TOML Syntax Check (push) Successful in 51s
Tests / Mixed Line Ending Check (push) Successful in 53s
Tests / TOML Formatting Check (push) Successful in 53s
Tests / Ruff Linting (push) Successful in 59s
Tests / Ruff Format Check (push) Successful in 57s
Tests / Pyright Type Check (push) Successful in 1m16s
Tests / Darglint Docstring Check (push) Successful in 1m2s
Tests / No Docstring Types Check (push) Successful in 1m0s
Tests / ESLint Check (push) Successful in 1m7s
Tests / Prettier Format Check (push) Successful in 56s
Tests / TypeScript Type Check (push) Successful in 1m11s
Tests / TSDoc Lint Check (push) Successful in 1m7s
Tests / Backend Tests (push) Successful in 1m3s
Tests / Frontend Tests (push) Failing after 1m8s
Tests / Integration Tests (push) Has been skipped
Tests / End-to-End Tests (push) Has been skipped
Tests / Backend Doctests (push) Successful in 56s
Tests / End of File Check (push) Successful in 12m30s
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
2025-10-30 12:25:45 -04:00
815187e544 Fixing pyright error.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
2025-10-30 12:22:11 -04:00
2 changed files with 6 additions and 2 deletions

View File

@@ -1,9 +1,11 @@
"""Pytest configuration for automatic typeguard integration."""
from typing import Any
from typeguard import install_import_hook
def pytest_configure(config) -> None: # noqa: ARG001
def pytest_configure(config: Any) -> None: # noqa: ARG001
"""Configure pytest to use typeguard automatically."""
# Install typeguard import hook to automatically check all functions
# with type hints in the backend package during test runs
@@ -15,7 +17,7 @@ def pytest_configure(config) -> None: # noqa: ARG001
print("🛡️ Automatic typeguard hooks installed for test run")
def pytest_runtest_setup(item):
def pytest_runtest_setup(item: Any) -> None:
"""Set up typeguard for each test run."""
# The import hook is automatically enabled via pytest_configure
# All functions with type hints will be automatically checked

View File

@@ -12,6 +12,8 @@ export default defineConfig({
test: {
environment: 'jsdom',
globals: true,
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}', 'tests/unit/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: ['tests/e2e/**/*'],
setupFiles: ['./src/test-setup.ts'], // Automatically install Zod validation hooks
coverage: {
provider: 'v8',