Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Oct 10, 2025

This commit introduces the base infrastructure for an experimental jasmine-to-vitest refactoring schematic and the initial set of transformers for lifecycle functions.

The base infrastructure includes the main schematic entry point, the AST transformer driver, and various utilities for AST manipulation, validation, and reporting.

The lifecycle transformers handle:

  • fdescribe/fit -> describe.only/it.only
  • xdescribe/xit -> describe.skip/it.skip
  • pending() -> it.skip()
  • Asynchronous tests using the 'done' callback are converted to 'async/await'.

Usage:
ng generate jasmine-to-vitest [--project <project-name>]

@clydin clydin added the target: major This PR is targeted for the next major release label Oct 10, 2025
@clydin clydin force-pushed the refactor/jasmine-vitest-1 branch 3 times, most recently from c8b00c5 to 3d5936b Compare October 10, 2025 19:01
@clydin clydin marked this pull request as ready for review October 10, 2025 19:02
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 10, 2025
Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one question if this should be included in the docs.

…est refactor schematic

This commit introduces the base infrastructure for an experimental jasmine-to-vitest refactoring schematic and the initial set of transformers for lifecycle functions.

The base infrastructure includes the main schematic entry point, the AST transformer driver, and various utilities for AST manipulation, validation, and reporting.

The lifecycle transformers handle:
- fdescribe/fit -> describe.only/it.only
- xdescribe/xit -> describe.skip/it.skip
- pending() -> it.skip()
- Asynchronous tests using the 'done' callback are converted to 'async/await'.

Usage:
ng generate jasmine-to-vitest [--project <project-name>]
@clydin clydin force-pushed the refactor/jasmine-vitest-1 branch from 3d5936b to f23d7b7 Compare October 13, 2025 11:08
@clydin clydin removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 13, 2025
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Oct 13, 2025
@clydin clydin merged commit 58474ec into angular:main Oct 13, 2025
32 checks passed
@clydin clydin deleted the refactor/jasmine-vitest-1 branch October 13, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants