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

gulpjs / plugin-error / 39 / 5
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 23 Jan 2018 10:58PM UTC
Files 1
Run time 57min
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

23 Jan 2018 10:56PM UTC coverage: 92.8% (+0.8%) from 92.0%
39.5

push

travis-ci

web-flow
Fix: Update types to support union-type arguments (Fixes #10)

This commit updates the signature of the `PluginError` constructor to
loosen the constraints on the parameters in order to support union types
while keeping inference on custom properties.
This is a semver minor update (fix).

This allows for example to use the pattern below:
```
function createPluginError(error: Error | string) {
  return new PluginError("test", error);
}
```
(The tests were updated with more complex cases)

See the discussions in #10 and #11 for details.

- Closes gulpjs/plugin-error#10
- Closes gulpjs/plugin-error#11

/cc @gucong3000

31 of 36 branches covered (86.11%)

Branch coverage included in aggregate %.

85 of 89 relevant lines covered (95.51%)

17.09 hits per line

Source Files on job 39.5
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 39
  • Travis Job 39.5
  • eae2f4ca on github
  • Prev Job for on master (#23.4)
  • Next Job for on master (#40.5)
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