Skip to content

Conversation

@clydin
Copy link
Member

@clydin clydin commented Oct 14, 2025

This commit adds new tests for the jasmine-to-vitest refactoring schematic to increase test coverage and better validate its behavior during complex transformations.

The new tests include:

  • Integration Tests: A new test-file-transformer.integration_spec.ts file validates the end-to-end transformation of various realistic test file scenarios, such as component tests, service tests with async operations, and complex spies and matchers.
  • Unit Tests: A new test-file-transformer_spec.ts file focuses on unit-testing specific transformation capabilities, including nested transformations and the preservation of comments during refactoring.
  • Schematic Runner Tests: A new index_spec.ts file provides tests for the schematic runner itself, verifying options like fileSuffix and verbose logging, and the generation of the summary report.

…o-vitest schematic

This commit adds new tests for the `jasmine-to-vitest` refactoring schematic to increase test coverage and better validate its behavior during complex transformations.

The new tests include:
- **Integration Tests:** A new `test-file-transformer.integration_spec.ts` file validates the end-to-end transformation of various realistic test file scenarios, such as component tests, service tests with async operations, and complex spies and matchers.
- **Unit Tests:** A new `test-file-transformer_spec.ts` file focuses on unit-testing specific transformation capabilities, including nested transformations and the preservation of comments during refactoring.
- **Schematic Runner Tests:** A new `index_spec.ts` file provides tests for the schematic runner itself, verifying options like `fileSuffix` and `verbose` logging, and the generation of the summary report.
@clydin clydin added the target: major This PR is targeted for the next major release label Oct 14, 2025
@clydin clydin added the action: merge The PR is ready for merge by the caretaker label Oct 14, 2025
@clydin clydin merged commit 92ddc42 into angular:main Oct 14, 2025
34 checks passed
@clydin clydin deleted the refactor/jasmine-vitest-5 branch October 14, 2025 17:27
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @schematics/angular target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants