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

strongloop / loopback-next / 18760 / 1
76%
master: 76%

Build:
DEFAULT BRANCH: master
Ran 29 May 2020 09:23AM UTC
Files 649
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 May 2020 09:14AM UTC coverage: 91.423%. Remained the same
TASK=test

push

travis-ci-com

bajtos
fix(repository): fix DynamicModelCtor type to correctly preserve Props

Before this change, the following code would create an instance
with the type of the base model class, ignoring custom model properties:

```ts
const Product = defineModelClass<typeof Model, {name: string}>(
  Model,
  definition,
);
const p = new Product();
// p has type Model now
```

This patch fixes the problem by changing the order in which constructor
functions are defined in `DynamicModelCtor`, so that the compiler always
picks the constructor returning `Base & Props`.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>

5538 of 6607 branches covered (83.82%)

Branch coverage included in aggregate %.

14959 of 15813 relevant lines covered (94.6%)

1101.52 hits per line

Source Files on job 18760.1 (TASK=test)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 14735
  • Travis Job 18760.1
  • 927789e2 on github
  • Prev Job for TASK=test on master (#18750.1)
  • Next Job for TASK=test on master (#18775.1)
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

© 2026 Coveralls, Inc