Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/schematics/angular/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
"private": true,
"description": "[INTERNAL] Adds tailwind to a project. Intended for use for ng new/add."
},
"jasmine-to-vitest": {
"refactor-jasmine-vitest": {
"factory": "./refactor/jasmine-vitest",
"schema": "./refactor/jasmine-vitest/schema.json",
"description": "[EXPERIMENTAL] Refactors Jasmine tests to use Vitest APIs.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('Jasmine to Vitest Schematic', () => {
appTree.overwrite(specFilePath, content);

const tree = await schematicRunner.runSchematic(
'jasmine-to-vitest',
'refactor-jasmine-vitest',
{ project: 'bar' },
appTree,
);
Expand Down Expand Up @@ -84,7 +84,7 @@ describe('Jasmine to Vitest Schematic', () => {
appTree.create(testFilePath, testFileContent);

const tree = await schematicRunner.runSchematic(
'jasmine-to-vitest',
'refactor-jasmine-vitest',
{ project: 'bar', fileSuffix: '.test.ts' },
appTree,
);
Expand Down Expand Up @@ -113,7 +113,7 @@ describe('Jasmine to Vitest Schematic', () => {
schematicRunner.logger.subscribe((entry) => logs.push(entry.message));

await schematicRunner.runSchematic(
'jasmine-to-vitest',
'refactor-jasmine-vitest',
{ project: 'bar', verbose: true },
appTree,
);
Expand All @@ -138,7 +138,7 @@ describe('Jasmine to Vitest Schematic', () => {

it('should only transform the specified file', async () => {
const tree = await schematicRunner.runSchematic(
'jasmine-to-vitest',
'refactor-jasmine-vitest',
{ project: 'bar', include: 'src/app/nested/nested.spec.ts' },
appTree,
);
Expand All @@ -152,7 +152,7 @@ describe('Jasmine to Vitest Schematic', () => {

it('should handle a Windows-style path', async () => {
const tree = await schematicRunner.runSchematic(
'jasmine-to-vitest',
'refactor-jasmine-vitest',
{ project: 'bar', include: 'src\\app\\nested\\nested.spec.ts' },
appTree,
);
Expand All @@ -171,7 +171,7 @@ describe('Jasmine to Vitest Schematic', () => {
);

const tree = await schematicRunner.runSchematic(
'jasmine-to-vitest',
'refactor-jasmine-vitest',
{ project: 'bar', include: 'src/app' },
appTree,
);
Expand All @@ -188,7 +188,7 @@ describe('Jasmine to Vitest Schematic', () => {

it('should process all files if `include` is not provided', async () => {
const tree = await schematicRunner.runSchematic(
'jasmine-to-vitest',
'refactor-jasmine-vitest',
{ project: 'bar' },
appTree,
);
Expand All @@ -203,7 +203,7 @@ describe('Jasmine to Vitest Schematic', () => {
it('should throw if the include path does not exist', async () => {
await expectAsync(
schematicRunner.runSchematic(
'jasmine-to-vitest',
'refactor-jasmine-vitest',
{ project: 'bar', include: 'src/non-existent' },
appTree,
),
Expand All @@ -226,7 +226,7 @@ describe('Jasmine to Vitest Schematic', () => {
const logs: string[] = [];
schematicRunner.logger.subscribe((entry) => logs.push(entry.message));

await schematicRunner.runSchematic('jasmine-to-vitest', {}, appTree);
await schematicRunner.runSchematic('refactor-jasmine-vitest', {}, appTree);

expect(logs).toContain('Jasmine to Vitest Refactoring Summary:');
expect(logs).toContain('- 1 test file(s) scanned.');
Expand Down