Skip to content

Jest Tests#10

Merged
mitchspano merged 10 commits intomainfrom
tests
Jul 30, 2025
Merged

Jest Tests#10
mitchspano merged 10 commits intomainfrom
tests

Conversation

@mitchspano
Copy link
Owner

Incorporate a large suite of unit tests for the modules in the application.

… test setup

- Enhanced ESLint rules for TypeScript naming conventions to enforce better code practices.
- Introduced Jest as the testing framework, replacing Mocha, and updated related configurations.
- Added test setup and mock files for VS Code and LWC to facilitate unit testing.
- Refactored existing tests to align with Jest's structure and capabilities.
- Removed outdated test files and streamlined the testing process for improved maintainability.
- Modified Jest configuration to disable experimental decorators and emit decorator metadata.
- Introduced a new mock file for the App component to facilitate testing.
- Added comprehensive unit tests for the App component, covering its methods, properties, and integration with the VS Code API.
- Enhanced LWC mock implementations to support the App component's testing requirements.
- Updated the mock implementations of the track, api, and wire decorators to support optional property keys for better flexibility in testing.
- Introduced a new test suite for the BranchModal component, covering various scenarios including property management, event handling, and integration workflows.
- Implemented comprehensive tests to ensure correct behavior for branch selection, saving, and cancellation processes.
- Introduced `CliElement` and `Header` components, implementing their core functionalities and properties.
- Added Jest unit tests for both components, covering various scenarios including command execution, navigation handling, and state management.
- Updated Jest configuration to include new mock paths for the components, enhancing test coverage and maintainability.
- Enabled experimental decorators and metadata emission in Jest configuration to support new component features.
- Added multiple mock files for new components including Home, MetadataExplorer, OrgListItem, OrgManager, Pipeline, RepoConfig, and Toast to facilitate comprehensive testing.
- Refactored the App component's executeCommand method in the Home mock for improved test accuracy.
- Introduced unit tests for the new components, ensuring robust coverage of their functionalities and interactions.
- Introduced the ScratchOrgModal component, which manages Dev Hub selection, org alias input, definition file selection, and duration settings.
- Implemented comprehensive unit tests for the ScratchOrgModal, covering initialization, computed properties, event handling, and validation logic.
- Updated Jest configuration to include the new component mock for testing purposes.
…nfig

- Removed the compile step from the pretest script to streamline testing.
- Updated webpack configuration to exclude the test directory from TypeScript compilation, improving build efficiency.
- Introduced a new job in the GitHub Actions workflow to run tests after the compilation step.
- This enhancement ensures that tests are executed automatically during the CI process, improving code quality and reliability.
- Modified the GitHub Actions workflow to install root dependencies before extension dependencies, ensuring a more efficient setup process.
- Updated the cache dependency path to reference the root package-lock.json for improved caching performance.
@mitchspano mitchspano merged commit 789913d into main Jul 30, 2025
1 check passed
@mitchspano mitchspano deleted the tests branch July 30, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant