Skip to content

refactor(schematics): rename migration entry-points #13333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
4 changes: 2 additions & 2 deletions src/lib/schematics/migration.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
"schematics": {
"migration-01": {
"migration-v6": {
"version": "6",
"description": "Updates Angular Material to v6",
"factory": "./ng-update/index#updateToV6"
},
"migration-02": {
"migration-v7": {
"version": "7",
"description": "Updates Angular Material to v7",
"factory": "./ng-update/index#updateToV7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {resolveBazelDataFile, runTestCases} from '../index.spec';
describe('constructor checks', () => {

it('should properly report invalid constructor expression signatures', async () => {
const {logOutput} = await runTestCases('migration-01', {
const {logOutput} = await runTestCases('migration-v6', {
'constructor-checks': resolveBazelDataFile(`misc/constructor-checks_input.ts`)
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {resolveBazelDataFile, runTestCases} from '../index.spec';
describe('v6 import misc checks', () => {

it('should report imports for deleted animation constants', async () => {
const {logOutput} = await runTestCases('migration-01', {
const {logOutput} = await runTestCases('migration-v6', {
'import-checks': resolveBazelDataFile(`misc/import-checks_input.ts`)
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {resolveBazelDataFile, runTestCases} from '../index.spec';
describe('v6 method call checks', () => {

it('should properly report invalid method calls', async () => {
const {logOutput} = await runTestCases('migration-01', {
const {logOutput} = await runTestCases('migration-v6', {
'method-call-checks': resolveBazelDataFile(`misc/method-call-checks_input.ts`)
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('v6 upgrade test cases', () => {
return inputs;
}, {});

const {tempPath} = await runTestCases('migration-01', testCaseInputs);
const {tempPath} = await runTestCases('migration-v6', testCaseInputs);

testCasesOutputPath = join(tempPath, 'projects/material/src/test-cases/');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('v7 upgrade test cases', () => {
return inputs;
}, {});

const {tempPath} = await runTestCases('migration-02', testCaseInputs);
const {tempPath} = await runTestCases('migration-v7', testCaseInputs);

testCasesOutputPath = join(tempPath, 'projects/material/src/test-cases/');
});
Expand Down