"""Tests for the project analyzer.""" from pathlib import Path import pytest from dss.analyze.project_analyzer import analyze_project @pytest.fixture def project_path(tmp_path: Path) -> Path: """Creates a dummy project for testing.""" project_path = tmp_path / "project" project_path.mkdir() (project_path / "componentA.js").touch() (project_path / "componentB.jsx").touch() return project_path def test_analyze_project(project_path: Path): """Tests that the project analyzer can analyze a project.""" analysis = analyze_project(str(project_path)) assert analysis.project_name == "project" assert analysis.total_files == 2