forked from typeorm/typeorm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve helper for cli for commands missing positionals (typeorm…
…#10133) * fix: improve helper for cli for commands missing positionals Add positionals to: - MigrationCreateCommand - MigrationGenerateCommand - SubscriberCreateCommand - EntityCreateCommand * fix: re-enable migration-create/generate tests
- Loading branch information
1 parent
ca29c0f
commit 9f8899f
Showing
7 changed files
with
74 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 12 additions & 8 deletions
20
test/functional/commands/templates/result-templates-create.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,38 @@ | ||
export const resultsTemplates: Record<string, any> = { | ||
control: `import {MigrationInterface, QueryRunner} from "typeorm"; | ||
control: `import { MigrationInterface, QueryRunner } from "typeorm"; | ||
export class testMigration1610975184784 implements MigrationInterface { | ||
export class TestMigration1610975184784 implements MigrationInterface { | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
} | ||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
} | ||
}`, | ||
} | ||
`, | ||
javascript: `const { MigrationInterface, QueryRunner } = require("typeorm"); | ||
module.exports = class testMigration1610975184784 { | ||
module.exports = class TestMigration1610975184784 { | ||
async up(queryRunner) { | ||
} | ||
async down(queryRunner) { | ||
} | ||
}`, | ||
timestamp: `import {MigrationInterface, QueryRunner} from "typeorm"; | ||
export class testMigration1641163894670 implements MigrationInterface { | ||
} | ||
`, | ||
timestamp: `import { MigrationInterface, QueryRunner } from "typeorm"; | ||
export class TestMigration1641163894670 implements MigrationInterface { | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
} | ||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
} | ||
}`, | ||
} | ||
`, | ||
} |