Files
DefinitelyTyped/types/backstopjs
Christopher DeutschandSheetal Nandi 6b3f9450aa Update BackstopJS types. (#37834)
* Update BackstopJS types.

Add support for `Viewport.label` which is more commonly used than `name`.
Seems to be a free form string, not a limited set of strings:
https://github.com/garris/BackstopJS/blob/aa7de8ee059074f947768cfd04db1776348e1a7a/examples/jsBasedConfig/backstopConfig.js

Looks like they may have switched from `name` to `label` in this commit:
https://github.com/garris/BackstopJS/commit/0535303326e658e69d78f6405aac390b620ff222#diff-9e67e5c53c6a24f5b7f26f857fff03ea

Change `misMatchThreshold` to a number:
https://github.com/garris/BackstopJS/blob/aa7de8ee059074f947768cfd04db1776348e1a7a/examples/jsBasedConfig/backstopConfig.js#L35

* Fix version.

* I just tested this locally and you can any custom properties you like to scenarios, which is helpful for a custom onBefore script I'm working on.
2019-08-24 21:50:15 -07:00
..