• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

typeorm / typeorm / 15805338492

22 Jun 2025 09:51AM UTC coverage: 76.344% (-0.07%) from 76.418%
15805338492

push

github

web-flow
fix: add stricter type-checking and improve event loop handling (#11540)

* refactor: minor type improvements

* chore: add type-checked eslint rules

* fix: enable no-misused-promises

* fix: enable no-floating-promises

* fix: enable await-thenable

* fix: enable require-await

* fix: enable no-misused-new

* refactor: enable no-namespace

* refactor: enable tseslint eslint recommended

* code review

9281 of 12872 branches covered (72.1%)

Branch coverage included in aggregate %.

117 of 210 new or added lines in 18 files covered. (55.71%)

19 existing lines in 9 files now uncovered.

18996 of 24167 relevant lines covered (78.6%)

119161.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/cli.ts
1
#!/usr/bin/env node
2
import "reflect-metadata"
3
import yargs from "yargs"
4
import { SchemaSyncCommand } from "./commands/SchemaSyncCommand"
5
import { SchemaDropCommand } from "./commands/SchemaDropCommand"
6
import { QueryCommand } from "./commands/QueryCommand"
7
import { EntityCreateCommand } from "./commands/EntityCreateCommand"
8
import { MigrationCreateCommand } from "./commands/MigrationCreateCommand"
9
import { MigrationRunCommand } from "./commands/MigrationRunCommand"
10
import { MigrationRevertCommand } from "./commands/MigrationRevertCommand"
11
import { MigrationShowCommand } from "./commands/MigrationShowCommand"
12
import { SubscriberCreateCommand } from "./commands/SubscriberCreateCommand"
13
import { SchemaLogCommand } from "./commands/SchemaLogCommand"
14
import { MigrationGenerateCommand } from "./commands/MigrationGenerateCommand"
15
import { VersionCommand } from "./commands/VersionCommand"
16
import { InitCommand } from "./commands/InitCommand"
17
import { CacheClearCommand } from "./commands/CacheClearCommand"
18

19
// eslint-disable-next-line @typescript-eslint/no-floating-promises
UNCOV
20
yargs
×
21
    .usage("Usage: $0 <command> [options]")
22
    .command(new SchemaSyncCommand())
23
    .command(new SchemaLogCommand())
24
    .command(new SchemaDropCommand())
25
    .command(new QueryCommand())
26
    .command(new EntityCreateCommand())
27
    .command(new SubscriberCreateCommand())
28
    .command(new MigrationCreateCommand())
29
    .command(new MigrationGenerateCommand())
30
    .command(new MigrationRunCommand())
31
    .command(new MigrationShowCommand())
32
    .command(new MigrationRevertCommand())
33
    .command(new VersionCommand())
34
    .command(new CacheClearCommand())
35
    .command(new InitCommand())
36
    .recommendCommands()
37
    .demandCommand(1)
38
    .strict()
39
    .alias("v", "version")
40
    .help("h")
41
    .alias("h", "help")
42
    .parse()
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc